SheepofSheep/dsh-doyourweb ↗★ 4
dsh-doyourweb
在DSH中引用和控制浏览器标签页 适合需要让智能体直接读取或控制现有Chrome/Edge网页内容的任务。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SheepofSheep/dsh-doyourweb说明文档
阅读完整 README ↗Configuration
Defaults are declared in cordis.patch.yml:
| Setting | Default | Purpose |
|---|---|---|
port | 43187 | Local bridge port |
snapshotChars | 2400 | Page-read and initial reference-context budget |
idleTimeoutMs | 120000 | Idle time before releasing the debugger connection |
The data directory is /browser-tabs/, or ~/.dsh/browser-tabs/ when DSH_HOME is unset. An explicit plugin home setting takes precedence. Set environment variables on the DSH process; the plugin does not require its own model API key.
Usage
After referencing a page, you can ask:
Read the result list on this page and collect its titles and links. Do not submit any forms.
| Model tool | Use |
|---|---|
browser_read | Read a snapshot; narrow with selector, query or depth; use cursor for remaining content. limit accepts 400-8,000 characters. |
browser_act | Use the latest snapshot ID to click, fill, press, select, check, hover, scroll, navigate, go back/forward, wait or extract. |
browser_capture | Save a screenshot when visual inspection is needed. |
When multiple tabs are authorized, pass the selected tab's reference as tab.
Tool example: read a page, then extract a short result list
Call browser_read for the single authorized tab:
{
"depth": 8,
"limit": 2400
}
Use the returned snapshot ID in browser_act. Replace the selector with one from the actual page:
{
"snapshot": "",
"observe": "summary",
"steps": [
{
"op": "extract",
"selector": "a.result-title",
"fields": ["text", "href"],
"maxRows": 10
}
]
}
These are model-tool arguments, not shell commands. summary does not return a new snapshot; read again before another action call.