dsh-html-inspector
Manifest validSelection mode for DeepSeek Harness: click any element in a local HTML demo, locator auto-written to chat input / DSH HTML Selection mode plugin
dsh-html-inspector
English | 中文
Selection mode for HTML preview and browser tabs in DeepSeek Harness (dsh): turn it on, click any element in a locally served demo page, and the element's locator — CSS selector, visible text, and an HTML snippet — is written straight into the chat input, so the agent can edit precisely what you pointed at. Nothing on disk is ever modified.
What you get
- Click-to-locate — hover highlights the element under the cursor with a blue outline; click captures tag, id, classes, a
nth-of-typeCSS selector path, up to 1200 chars of visible text, and up to 4000 chars of the element's outer HTML, then writes it into the current conversation's input box.Esccancels. - Browser tab support — type a loopback address (
localhost/127.0.0.1) into a dsh browser tab and the plugin transparently routes it through an injecting proxy (/inspector/proxy); selections survive navigation. - File preview support — HTML files opened from the file tree (
/sidebar/htmleditor iframe) get the same treatment: the preview frame is swapped for a same-content copy with the inspector injected (<base>preserved for relative assets), and selections are tagged with a "file preview" origin marker. - Selection mode toolbar button — injects an on/off toggle into the browser-tab toolbar of
dsh-better-sidebarwhen present (optional; everything else works without it). The choice is remembered per tab session; it defaults to on. - Loopback only, read-only — the proxy refuses non-loopback targets and never writes to your files.
Install
dsh plugin --profile web add github:robin421/dsh-html-inspector
Or one click from dsh-market (Settings → Plugin Market) once listed.
Restart the web GUI (or refresh the page), then look for the selection mode button in the browser-tab toolbar, or just type a localhost URL into a browser tab.
How it works
- Host side (
index.js) — a cordis plugin that registers one route,GET /inspector/proxy?url=…. It fetches the loopback URL, rewrites same-origin links so navigation stays inside the proxy, and injects a self-contained inspector script. No dependencies beyond the dsh runtime. - Client side (
client.js) — loaded via the dsh client runtime (dsh.client, platformweb). It intercepts loopback address-bar input, listens forpostMessageselections from proxied pages, writes located info into the chat composer, and manages the toolbar toggle. - The two halves never talk to the network beyond your own machine.
Compatibility
- Works with the web GUI and desktop clients that ship the dsh client runtime.
- The toolbar button appears only if
dsh-better-sidebaris installed; the address-bar interception and file-preview selection mode work regardless.
Security
The proxy binds to loopback targets only (exact-match localhost, 127.0.0.0/8, ::1, 0.0.0.0) and rejects everything else. It performs GET fetches of pages you ask it to proxy, injects the inspector script, and returns the result to your own GUI. It stores nothing and sends nothing anywhere.
License
MIT
Comments
Loading…
Similar plugins
by ztlovelsw
点选前端页面任意 UI 控件,自动把控件详情(CSS 选择器/XPath/组件名/样式)写入 DeepSeek Harness 输入框,让 AI 精准定位要改的界面元素。
★ 1
MIT
JavaScript
Oct 24, 2026
dsh plugin --profile web add dsh-ui-pickerby cslkkl
Annotate pages and ask questions inside the existing DeepSeek Harness Browser.
★ 0
MIT
TypeScript
Oct 14, 2026
dsh plugin --profile web add dsh-web-annotatorby Chi-hong22
DeepSeek Harness Web composer markdown editing helper: Shift+Enter list continuation with ordered-list auto-renumbering and Tab indent
★ 0
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add @chi-hong22/dsh-mdboxby Nono-neko
An AI-native browser workspace for DeepSeek Harness (DSH), combining multi-tab browsing, live page annotations, lightweight code editing, workspace previews, and Agent-assisted iteration across Web an
★ 15
↓ 564/wk
Apache-2.0
TypeScript
Oct 30, 2026
dsh plugin --profile web add @nono-neko/dsh-browserby yxue301603
DeepSeek Harness 原生插件 · 选文操作 · 选中回答后引用追问、解释或翻译,预览后填入草稿。
★ 0
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-selection-actionsby kanxue0201
在 DSH 右栏浏览器里点选页面元素,把这一处的改动直接交给模型。
★ 0
MIT
JavaScript
Nov 14, 2026
dsh plugin --profile web add dsh-element-ref