dsh-desktop-shot
DiscoveredDSH Desktop Screenshot Plugin: one button in the input box → window collapses, box selection → cropped image automatically added to the draft box (Windows only)
dsh-desktop-shot
集成在 DSH 桌面版里的简单截图工具:输入框旁边点一下 → 窗口收起、拖一个框 → 图片自动进草稿框。仅 Windows。
安装
-
把本仓库放进插件目录(没有 git 就下 ZIP 解压到同一位置):
git clone https://github.com/jianuoli664/dsh-desktop-shot.git "$env:USERPROFILE\.dsh\plugins\dsh-desktop-shot" -
在 profile 里登记依赖(
--profile换成你在用的那个,一般是desktop):& "<DSH 安装目录>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add "file:C:/Users/<你>/.dsh/plugins/dsh-desktop-shot" -
打开
%USERPROFILE%\.dsh\profiles\<profile>\package.json,确认dsh.profile.bundles里有"dsh-desktop-shot"(pnpm add只写dependencies,装载清单要自己补)。 -
重启 DSH 桌面应用,输入框右侧出现截图按钮。
改 lib/client.js 不用重启(宿主按 mtime/size 轮询热换);改 lib/index.mjs 必须重启进程。
用法
- 点输入框右侧的截图按钮,DSH 窗口收起。
- 拖一个矩形框(Esc / 右键取消,默认 300 秒超时自动取消)。
- 裁剪图自动进草稿框。万一没进去,图还在剪贴板里,
Ctrl+V即可。
已知限制
- 仅 Windows(Win32 + PowerShell + WinForms)。
- 自动投递靠 composer 的隐藏
input[type=file];核心改掉这个控件就只能退回剪贴板粘贴。 - 回合正在
adjudicating/submitting时核心会拒收附件,长回合重试也救不了。
卸载
& "<DSH 安装目录>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop remove dsh-desktop-shot
或从 profile 的 package.json 里删掉 dependencies 与 dsh.profile.bundles 中的
dsh-desktop-shot 两处,再重启。
文档
技术背景、踩坑记录和验证数据在 docs/notes.md。
许可
Comments
Loading…
Similar plugins
by chguo-3
DSH 插件:聊天框截图按钮。点击后整屏冻结,在真实屏幕上框选、调选区、涂鸦圈重点,完成后作为图片附件进入对话草稿(Windows 原生编辑器,物理像素 1:1)。
★ 0
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add dsh-screenshotby loftspire
Windows-only screenshot button for the DSH composer: freezes the desktop and dims it, selects a whole window by hovering or a region by dragging, marks it up with rectangles, ellipses, arrows and pen
★ 0
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add @loftspire/dsh-shot在 DSH 输入面板下方添加截图按钮:点击调用系统自带截图工具(Windows/macOS/Linux),截图后 Ctrl+V 粘贴进输入框
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-screenshot-buttonby HsgtLgt
面向模型的「截图」工具插件(DeepSeek Harness,Windows 宿主)。 注册一个 screenshot 工具,让会话里的 AI 能真正「看见」并展示你的屏幕。
★ 0
MIT
JavaScript
Oct 8, 2026
dsh plugin --profile web add dsh-plugin-screenshotby deepseekbluefish
WeChat-style in-app screenshot button: drag a region, fine-tune with 8 resize handles, Enter to capture and Esc to cancel; auto-numbered PNGs plus a [Shot N HH:mm] marker written into the composer. Wi
★ 0
MIT
PowerShell
Aug 24, 2026
dsh plugin --profile web add dsh-screenshot-pluginby yangsong608
DSH 桌面版文件编辑器插件:打开、编辑、查看文件(独立实现,不依赖 OneEdit)
★ 0
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-file-editor