XEsx630/dsh-screenshot

XEsx630★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

WeChat-style screenshot for the DeepSeek Harness composer: capture the screen (optionally hiding the DSH window), drag-select a region, and attach the image directly to the message. Windows + PowerShell server-side crop.

README excerpt

dsh-screenshot — 对话框截图插件(微信 PC 式) 为 DeepSeek Harness(DSH)Web 对话框提供 微信 PC 客户端式截图 :点击截图按钮 → 遮罩框选(或先隐藏 DSH 窗口再截)→ 确认后 图片卡直接出现在输入框上方 ,可直接发送;模型拿到图片路径后用本地 vision MCP(或其他读图工具)读取内容。 功能 - 📷 composer 工具栏新增「截图」按钮,点击弹出两种模式: - 截取屏幕任意区域 :不隐藏窗口,全屏遮罩 + 鼠标拖拽框选(显示选区像素尺寸),可「全选 / 取消 / 确定」 - 隐藏当前窗口后截图 :截图瞬间自动隐藏 DSH 浏览器窗口,截取被遮挡内容后自动恢复 - 确认后由 服务端 PowerShell 裁剪 (不依赖浏览器 canvas),图片卡出现在输入区上方待发送栏(可删除) - 发送时自动注入 截图: 文本(编辑器内为隐藏引用),模型据此调用 vision 工具读图 - 发送失败自动还原图片卡与草稿;取消截图不留临时文件 安装 从 GitHub 安装 dsh.bundle manifest 会自动把 dsh-screenshot 行挂进 profile。重启 dsh web 并刷新浏览器。 本地开发安装 把插件源码放到任意目录(如 D:\path\to\dsh-screenshot ),以 link: 方式挂载到 web profile: 1. /.dsh/profiles/web/package.json : - dependencies 增加 "dsh-screenshot": "link:D:/path/to/dsh-screenshot" - dsh.profile.bundles 增加 "dsh-screenshot" 2. 在 /.dsh/profiles/web/ 运行 pnpm install 3. 重启 dsh web 并刷新浏览器 依赖 - Windows(截图/裁剪脚本用 PowerShell 5.1 + System.Windows.Forms/System.Drawing) - DSH 0.1.x web profile 使用 1. 点 composer「截图」→ 选「截取屏幕任意区域」或「隐藏当前窗口后截图」 2. 等遮罩中画面加载完成,按住鼠标拖拽框选区域(微信式暗色遮罩 + 白色选区),松手后确认尺寸 3. 点「确定」→ 图片卡出现在输入框上方;可继续输入文字,点发送 4. 模型收到 截图: C:\...\screenshot-xxx.png 后调用 mcp vision describe image / mcp vision ocr image 读取内容 架构 设计要点: - 裁剪在服务端完成 ,浏览器只负责显示与框选坐标,杜绝 canvas 解码时序(…

View full README on GitHub →
Media / Contentdeepseek-harnessdshdsh-pluginscreenshotvision

Category