zclDragon/dsh-tool-generate-image0

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`.

包名
dsh-tool-generate-image
版本
0.1.0
许可证
Apache-2.0
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zclDragon/dsh-tool-generate-image

使用

装好后不用记任何命令。正常对话,直接让模型画图即可,例如:

画一只戴着工程师帽、坐在工作台前写代码的柴犬,卡通风格,16:9

模型会调用 generate_image,把图存到输出目录(默认 ~/.dsh/generated-images),并把文件路径和一句确认返回给你:

生成效果示例:写代码的柴犬程序员

生成的图会真实保存到磁盘,重启后依然在(不像会话内联图那样重启即失效)。

配置

插件 apply(ctx, config) 读取(web profile 的 cordis.patch.yml / 设置层注入):

默认含义
modelgemini-3.7-flash-medium驱动生成的对话模型(实际图像由后台 gemini-3.1-flash-image 渲染)
outputDir~/.dsh/generated-images生成图保存目录
timeoutMs300000单次生成超时
toolNamegenerate_image注册的工具名(与宿主其他工具撞名时可改)
agyagyagy 可执行文件
effort可选 low / medium / high,传给 agy --effort

工具参数:prompt(必填,自然语言描述)、fileName(可选,输出文件名,默认时间戳)。