zclDragon/dsh-tool-generate-image ↗★ 0
dsh-tool-generate-image
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 dsh-tool-generate-image`.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zclDragon/dsh-tool-generate-image说明文档
阅读完整 README ↗使用
装好后不用记任何命令。正常对话,直接让模型画图即可,例如:
画一只戴着工程师帽、坐在工作台前写代码的柴犬,卡通风格,16:9
模型会调用 generate_image,把图存到输出目录(默认 ~/.dsh/generated-images),并把文件路径和一句确认返回给你:

生成的图会真实保存到磁盘,重启后依然在(不像会话内联图那样重启即失效)。
配置
插件 apply(ctx, config) 读取(web profile 的 cordis.patch.yml / 设置层注入):
| 键 | 默认 | 含义 |
|---|---|---|
model | gemini-3.7-flash-medium | 驱动生成的对话模型(实际图像由后台 gemini-3.1-flash-image 渲染) |
outputDir | ~/.dsh/generated-images | 生成图保存目录 |
timeoutMs | 300000 | 单次生成超时 |
toolName | generate_image | 注册的工具名(与宿主其他工具撞名时可改) |
agy | agy | agy 可执行文件 |
effort | — | 可选 low / medium / high,传给 agy --effort |
工具参数:prompt(必填,自然语言描述)、fileName(可选,输出文件名,默认时间戳)。