← 返回列表
D

dsh-tool-generate-image

v0.2.0 · 0 天前发布

Model-facing generate_image tool for DeepSeek Harness (dsh): generates brand-new images with the Google Gemini image-generation service via the Antigravity CLI, saves them, and returns the paths. Hot-pluggable — install with `dsh plugin --profile web add

deepseekharnessdshdsh-pluginpluginimageimage-generationgenerate-imagegeminiantigravity

README

dsh-tool-generate-image

English | 中文

给 DeepSeek Harness(DSH) 的纯文本模型一个 generate_image 工具:用自然语言描述想要的图片,模型调用工具,经 Antigravity CLI(agy) 让 Google Gemini 画出来,保存到输出目录并返回文件路径。

生成的图片会直接内联显示在对话里,同时持久化保存到磁盘——重启后文件仍在,不像纯内存方案那样重启就 404。

!生成效果示例:坐在蓝色沙发上的橘猫

说明

这是模型侧工具——由模型在任务中按需调用("给第 3 节画个示意图,存好,我引用路径"),而不是聊天侧的自动生图 + 展示。

  • 底层走本机 agy 的 generate_image 工具 + gemini-3.1-flash-image 图像模型(免费 Google 账号,无需 API key)。

  • 生成结果从 ~/.gemini/antigravity-cli 递归收割(agy 落盘位置不固定:scratch/、brain/<会话>/、.tempmediaStorage/ 都有可能出现;也可能产出 SVG 矢量图),复制到可配置的输出目录后返回绝对路径。

  • 对话内联显示:图片字节存进程内存,经宿主
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    Apache-2.0
    npm
    dsh-tool-generate-image
    Repo
    git+https://github.com/zclDragon/dsh-tool-generate-image.git
    Engines
    {"node":">=22.19"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}