dsh-plugin-win-capture
Verifieddsh-plugin-win-capture · v0.1.1 · MIT · Web UI
Screenshot button for the DeepSeek Harness Web UI 鈥?region capture, annotation (pen/line/box/text), save to the workspace and drop into the composer.
Install
dsh plugin add dsh-plugin-win-capture Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Readme
dsh-plugin-win-capture
给 DeepSeek Harness 的输入框加一个截图按钮(小相机图标):框选屏幕 → 标注 → 自动存进工作区并放进输入框。
仅支持 Windows。 截图依赖 PowerShell + Win32 GDI + WPF,macOS / Linux 装不了(
os字段已声明)。
安装
dsh plugin add dsh-plugin-win-capture
装完完全退出 DeepSeek Harness 再打开(点 × 可能只是最小化到托盘,要从托盘右键退出)。
输入框那一行会出现一个小的相机图标。
用法
| 操作 | 效果 |
|---|---|
| 左键单击按钮(默认) | 先隐藏 DSH 窗口 → 冻结画面(不含本窗口)→ 单击截整屏 / 拖动框选 |
| 右键单击按钮 | 菜单里选「包括窗口截图」→ 画面保留 DSH 窗口 |
| 框选时 Esc 或 鼠标右键 | 取消,不产生图片 |
| 标注界面 | 画笔 / 直线 / 方框 / 文字、五种颜色、Ctrl+Z 撤销、Esc 取消 |
完成后图片会:
- 存到
<当前工作区>/shots/shot-年月日-时分秒.png(原始分辨率,例如 2560×1440); - 同时进入输入框的附件栏,等你按发送,不会自动发出。
这样模型可以直接读原文件,绕过附件管道的缩放。
隐私须知
这个插件会:
- 截取整个屏幕(或你框选的区域),屏幕上其他窗口的内容也会被拍进去;
- 启动本机 PowerShell 调用
user32.dll(隐藏/还原 DSH 窗口)与System.Drawing(截屏、裁剪); - 往
<工作区>/shots/写 PNG 文件。
它不联网、不上传任何数据,图片只在本机和 DSH 之间流转。
卸载:
dsh plugin remove dsh-plugin-win-capture
已生成的 shots/*.png 不会被删除,需自行清理。
兼容性
| DSH 版本 | 状态 |
|---|---|
| 0.2.1-rc.2 | 已验证可用 |
客户端依赖 DSH 的模块加载器(window.__ModuleLoader__),宿主半边依赖 ctx.webServer.register。未来版本若改动这两个接口,插件可能需要跟进。
已知限制
- 仅 Windows;
- 多显示器且各屏缩放不同时,框选坐标按主屏换算,可能偏移;
- 独占全屏的游戏画面截不到(GDI 限制);
- 「包括窗口截图」时,DSH 自己的界面(含这个按钮)也会被拍进图里。
License
MIT