dsh-plugin-browserskill
Tencent/BrowserSkillBrowserSkill 的 DeepSeek Harness 浏览器自动化桥接插件,通过原生浏览器工具控制可见的 Chrome 和 Edge Agent Window,支持可访问性与 VOM 页面观察、截图、隔离的多会话控制和 Web UI 实时观察浮层。
在 DSH 右侧边栏 Browser 中批注元素、空白位置或框选区域;每批保存截图与报告文件,并以文本形式附加到下一条消息。不替换官方 Browser、Chat 或 Layout 提供方。
在 DeepSeek Harness 桌面端右侧边栏的 Browser 标签页里批注网页:点选元素、点击空白位置或框选区域,写下修改意见;插件会自动保存截图与结构化报告,并把合并后的批注报告随你的下一条消息一起发送。
给"做的网页"或任意打开的网站提精确修改意见时,不用再截图、圈画、手打元素描述。
Enter 保存、Shift+Enter 换行、Esc 取消;已保存的批注点编号可重新编辑,✓ 保存、垃圾桶删除。NN.png。report.md、annotations.json 和截图,存放在 $DSH_HOME/annotations/<sessionId>/<timestamp>/,方便模型和人工复查。DSH 社区已经有多款批注类插件(例如 cslkkl/dsh-web-annotator、zhxnix/dsh-sidebar-annotations、Shuffle-1992/dsh-browser-kit、alaliqing/dsh-annotate)。本插件刻意保持窄而轻:
要求:DSH 桌面端 0.2.1-rc.2(已在此版本实机验证)。插件需要 Host 半代码,安装/更新后要重启 DSH。
dsh-web-annotation-0.1.1.tgz;desktop profile 由 Electron 管理,CLI 可能拒绝直接 add 它);dsh plugin --profile <profile> add \
https://github.com/HXwHSJS/dsh-web-annotation/releases/download/v0.1.1/dsh-web-annotation-0.1.1.tgz
也可以直接从 GitHub 源码安装(无构建脚本,不需要 allowBuilds):
dsh plugin --profile <profile> add github:HXwHSJS/dsh-web-annotation#<commit-sha>
安装后重启对应 profile 的 Host,刷新页面。
git clone https://github.com/HXwHSJS/dsh-web-annotation.git
dsh plugin --profile <profile> add "link:/absolute/path/to/dsh-web-annotation"
http(s) 页面;Enter 保存;继续下一条;批注模式未退出就直接发送也可以:后台会保存当前批次并随消息发出,发送后自动退出批注模式。
网页批注(共 3 条)
页面:控制台(https://example.com/#dashboard)
页面源文件(推断):./src/pages/dashboard.html
1. [元素] 「导出」:按钮颜色太浅,和背景对比度不够
2. [区域] 640×240:这块留白太大,压缩一半
页面:控制台(https://example.com/#settings)
3. [元素] 「点击位置」:这里想加一个「重置」入口
完整批注报告:C:\Users\<you>\.dsh\annotations\session-...\report.md;...
批注数据:...;...
截图目录:...;...
$DSH_HOME/annotations/<sessionId>/<timestamp>/(默认 ~/.dsh/annotations)。<webview> 注入运行时(executeJavaScript)并读取被批注页面的 DOM 信息;只在批注模式启用时运行。<webview>);Web 版右侧栏是跨域 iframe,无法注入。agent/pre-step 与 DSH 会话日志接口,目前以 0.2.1-rc.2 为验证基线;更新 DSH 后请做一次"批注 → 发送 → 重启 → 会话能加载"的回归。| 项 | 值 |
|---|---|
| DSH | 0.2.1-rc.2(验证基线) |
| 平台 | Desktop(Windows 已验证;代码平台无关) |
| 运行时依赖 | 无 |
| 构建 | 无 |
npm run check # node --check index.js + client.js
npm test # 离线运行时 harness(26 项)
npm run verify # 两者
代码结构:
| 文件 | 作用 |
|---|---|
client.js | Web 半:侧栏控件、输入框上方小块与桥、注入页面的批注运行时、报告合并、pending 同步 |
index.js | Host 半:/dsh-annotate/* 路由、报告落盘、pending 批次、agent/pre-step 把批注并入用户消息 |
cordis.patch.yml | bundle 插入 profile 的 loader 行 |
tests/runtime-harness.cjs | 从 client.js 抽出 runtimeMain(),用 DOM 桩驱动 26 项检查 |
locale/*.json | 插件管理页的标题与描述 |
贡献说明见 CONTRIBUTING.md,更新记录见 CHANGELOG.md。
MIT © 2026 HXwHSJS
本项目是独立社区插件,与 DeepSeek 官方无隶属关系。
Annotate pages in the DSH right-Sidebar Browser tab: click elements, blank
positions, or drag regions; write notes in an inline bubble; screenshots and a
Markdown/JSON report are saved under $DSH_HOME/annotations. Multiple batches
are merged into one report that is attached to your next sent message (durable
and visible in the chat). No build step, no runtime dependencies, no telemetry.
Requires DSH Desktop 0.2.1-rc.2; restart DSH after install/update.