Introduction¶
DeepSeek Harness (DSH) extends its functionality through a plugin system. In agent development, it is often necessary to inspect web page DOM structures or debug specific pages. This plugin provides a browser in the right sidebar of DSH, running via a loopback proxy, and supports element picking for injecting context into conversations.
Plugin Overview¶
- Name:
gnatnaituy/dsh-sidebar-browser - Maintainer: Gnatnaituy
- Positioning: A browser running in DSH’s right sidebar, supporting multi-tab browsing, device preview, account memory, and element picking.
- Core Value: Leverages a same-origin proxy to resolve cross-origin restrictions, inserting page DOM references (
[tag][DOMn]) into the input box so the model can read them via theread_picked_elementtool.
Installation and Activation¶
The plugin is installed as a DSH bundle. Use the official script for idempotent installation.
node tools/install-into-profile.mjs
For uninstallation or reinstallation, use:
node tools/uninstall-from-profile.mjs
Core Features¶
The plugin registers a native tab named “Browser · Picker” in DSH’s right sidebar. Main features include:
- Browsing & Tab Management: Supports multi-tab browsing. Page state (URL, title) is held by the host, and switching tabs does not reload pages. Tab state (URL, zoom, viewport) is saved to localStorage and automatically restored after restart.
- Debugging Aids:
- Zoom & Viewport: Supports 25%–300% zoom. Provides phone/tablet device previews (e.g., iPhone 15 Pro, iPad Pro), supports landscape/portrait switching and manual resolution input (width×height).
- URL Fault Tolerance: Supports URLs without protocols (e.g.,
localhost:3000/admin).
- Authentication & Sessions:
- Remember Accounts & Passwords: Supports saving and auto-filling forms. Passwords are explicitly stripped from element records.
- Port Memory: Each target origin remembers the last used port, preventing login state loss due to restarts.
- Element Picking:
- No DOM Injection: Highlight boxes are drawn on the shell page, keeping the tested page’s DOM clean.
- Reference Insertion: Click “Pick” or press the
`key to highlight an element and insert a reference (e.g.,[Submit Order][DOM1]). - Tool Invocation: The model calls the
read_picked_elementtool when it needs element details.
Typical Usage¶
- Open Panel: Click the plus icon in the input box toolbar to open the “Browser · Picker” tab in the right sidebar.
- Navigation & Tabs: Enter a URL in the address bar and press Enter to navigate; press
+to create a new tab,×or middle-click to close, click a tab to switch. - Adjust View: Use
−/+to zoom, or switch phone/tablet viewports via the device dropdown menu. Click the size indicator to directly input width×height. - Pick Elements: Click “Pick” in the toolbar or press
`, hover over elements to see highlights, click to insert a reference. The model can then read the element content.
Notes & Limitations¶
- Trust Boundary: Same-origin is both a prerequisite for picking and the trust boundary. The tested page can theoretically access the shell page and potentially forge pick results. Only browse trusted pages.
- Security Policy: The proxy strips CSP and
X-Frame-Optionsfrom tested pages; page security policies are not enforced in the sidebar. - Data Storage: Saved account passwords are stored in plaintext in DSH GUI’s localStorage (no system keychain), mapped only by target origin.
- Proxy Mechanism: The proxy only binds to
127.0.0.1and must run locally./dsh-sidebar-browser/invokegoes through the webServer route, not within the GUI login fence. - Device Preview: Only provides viewport preview;
devicePixelRatio,User-Agent, etc. still behave as desktop browser. - Restart Behavior: Pages will reload after DSH restarts; unsubmitted form content before restart is not preserved.
Use Cases¶
Suitable for agent developers debugging web applications, inspecting page layouts, testing responsive designs, or scenarios where page elements need to be passed as context to the model for operations.
Links¶
- GitHub: https://github.com/Gnatnaituy/dsh-sidebar-browser
- Directory Page: https://www.skillhub.cn/plugins/Gnatnaituy/dsh-sidebar-browser