Browser Tools for DeepSeek Harness
简体中文 · DeepSeek Harness · Security
Connect a running Chromium browser to a DSH agent through Chrome DevTools Protocol (CDP). Navigate, inspect accessible page snapshots, click, type, and capture screenshots. The plugin never downloads a browser; by default it only connects, and an optional setting can launch a configured local browser on demand.
What it does
- Exposes the native
browser_navigate,browser_snapshot,browser_click,browser_type, andbrowser_screenshottools. - Uses session-scoped element references to prevent clicks against stale pages; sessions are isolated across tabs.
- Supports
read,interact, andblockedsite rules. Sensitive actions use DSH's native approval service. - Limits CDP connections to loopback, redacts supported secret fields in snapshots, and saves bounded audit artifacts locally.
Requirements and installation
Requires an existing DeepSeek Harness host, a running Chromium-compatible browser with a local CDP endpoint, and the Node.js/peer dependencies declared in package.json. The plugin does not install a browser.
Install through DSH's plugin manager (replace desktop with your profile if needed):
dsh plugin --profile desktop add github:Kerberos255/dsh-browser-tools
For reproducible deployments, pin the GitHub source to a specific commit. Restart DSH after first installation or a code update.
Quick start
- Launch a Chromium browser with local remote debugging enabled on the port configured for the plugin (the default is
18801). Use a separate browser profile. - Open Settings → Plugins → Browser Tools and enter the loopback CDP address (default
http://127.0.0.1:18801). - Open a DSH agent with these tools enabled, navigate to a page, and request a snapshot before interacting with elements.
Example browser arguments (substitute your browser executable and profile directory):
--remote-debugging-address=127.0.0.1 --remote-debugging-port=18801 --user-data-dir=<browser-profile>
Optional: launch the browser on demand
With "launch browser on demand" enabled, the first tool call that cannot reach the CDP endpoint starts the configured executable and waits until it is ready:
- Set the browser executable path and the profile directory (
--user-data-dir); extra arguments are a JSON string array. - An instance that is already listening is reused — the plugin only launches when the endpoint is absent, so manually started browsers and parallel sessions are never disturbed.
- "Exit when idle (minutes)" defaults to 30 and closes the instance this plugin started after that much inactivity;
0disables it. Instances the plugin did not start are never closed. - Because the browser is spawned by DSH, it ends when DSH exits.
Safety and data
Browser content is untrusted input. The plugin rejects unsupported URL schemes, checks site rules again on navigation and interaction, and requires native approval for configured sensitive operations. Existing tabs are preserved on unload; plugin-created tabs may be closed. Snapshots and screenshots can contain private information; runtime artifacts stay under DSH's local data directory. See SECURITY.md for reporting and boundaries.
Development
Run npm test for portable policy tests. Live browser/CDP behavior requires an active DSH host and is not established by CI alone. Sample settings: config.example.json.
Related: Desktop Tools for Windows native applications · Web Search Router for search-provider routing.
MIT licensed. See LICENSE.
Optional plugin diagnostics
The plugin optionally emits privacy-restricted operation and failure metadata to dsh-plugin-diagnostics. Diagnostics contain event type, status, fixed error code and elapsed time; conversation content and credentials are not logged. The diagnostics plugin is optional and does not change the host requirements.