ReiRui/dsh-image-preview0

dsh-image-preview

Local image hosting for DeepSeek Harness: serves images from a preview directory over the web profile's own HTTP server so chat messages can render them inline, plus a preview_image tool that stages an existing local image and returns its URL.

AI 분석

核心用途是解决本地生成的图片无法在 Web UI 中直接预览的问题。适合需要 Agent 生成、下载或截取本地图片并立即在聊天框中内联展示的开发与设计任务。

패키지
dsh-image-preview
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 17.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ReiRui/dsh-image-preview

配置

$DSH_HOME/profiles/web/cordis.patch.yml 里覆盖该行的 config

- id: image-preview
  config:
    root: !!js dshHomePath('preview')   # 预览目录,可改成项目目录
    prefix: /preview                    # URL 前缀

使用

  1. 让 AI 生成/下载一张图(截图、渲染预览等)到本地;
  2. AI 调用 preview_image 工具传入绝对路径;
  3. 工具返回 http://127.0.0.1:3080/preview/,AI 在回复里贴该链接;
  4. 页面内联显示图片。

也可以直接访问 http://127.0.0.1:3080/preview/ 查看。