Introduction¶
When performing web access, page reading, screenshots, or simple page interactions within DSH, a common practice is to embed a runtime layer like Playwright or Puppeteer, or to use an external browser automation service. An additional layer of dependency often implies extra downloads, version alignment issues, and increased package size within the Host process. If you already have Microsoft Edge installed on your local machine and wish for the agent to control the browser directly via the DevTools Protocol (CDP) through a Host plugin, you can check out dsh-edge-browser released by the maintainer lingziba (Repository: lingziba/dshedge, categorized as a web access tool in the community directory).
The following introduces what it is, the tools it provides, how to install it, typical calling sequences, and usage notes.
What is This¶
dsh-edge-browser is a Host plugin for DeepSeek Harness: it inserts a set of edge_* tools between the DSH agent and Edge. The plugin process launches or takes over the local Edge (via --remote-debugging-port) through CDP to perform operations such as opening tabs, navigating, executing JS, extracting text, taking screenshots, clicking, and typing. The implementation uses only Node.js built-in node: modules and a self-developed WebSocket client. The README states zero third-party dependencies, and it does not download browsers via Playwright/Puppeteer.
The data flow can be summarized as:
DSH agent ──edge_* tools──▶ Plugin (Host Process) ──CDP──▶ Edge (--remote-debugging-port)
│ ▲
└── Dedicated user-data-dir ───┘
HTTP /json/* manages debug targets, while WebSocket dispatches CDP commands. It uses a dedicated configuration directory by default (%LOCALAPPDATA%\dsh-edge-browser\profile on Windows), which satisfies Chromium 136+’s requirement that “remote debugging must use a non-default profile” and avoids interfering with your daily Edge sessions. The WebSocket is established only when a browser operation is actually performed; closing a tab does not exit the entire browser instance.
Core Functions: 11 edge_* Tools¶
After installation, the bundle provides the tools listed in the table below (names and functions are derived from the repository README):
| Tool | Function |
|---|---|
edge_status |
Read-only probe: checks if the debug port is reachable, version, executable file, config directory, current tab |
edge_launch |
Launch or reuse a controllable Edge; optionally open a URL directly; supports headless: true |
edge_tabs |
List tabs and obtain targetId |
edge_open |
Open a URL in a new tab and set it as the default target for subsequent calls |
edge_navigate |
Navigate an existing tab and wait for document.readyState === 'complete' |
edge_eval |
Execute a JS expression in the page and return JSON text (supports awaiting Promises) |
edge_text |
Extract document.body.innerText body text, along with title and address |
edge_screenshot |
Save a screenshot to disk (PNG/JPEG, full-page supported), return path for read_image |
edge_click |
Click by CSS selector or visible text; scrolls into view before sending real mouse events |
edge_type |
Focus input box, clear, type text, supports submit: true to press Enter |
edge_close |
Close a specific tab; shutdown: true can exit the entire controllable instance |
The typical workflow provided in the README is: edge_launch → edge_navigate → edge_text / edge_eval; use edge_screenshot when visual confirmation is needed, combined with read_image.
Installation and Activation¶
The plugin must be placed in a directory that will not be moved afterwards: the DSH profile records the absolute link path of this directory; moving it requires reinstallation.
1. Obtain the Plugin Code¶
The README provides two methods (choose one):
git clone https://github.com/lingziba/dshedge.git D:\dsh-plugins\dshedge
# Or Code → Download ZIP on the webpage, extract to the same location
Please replace the example path D:\dsh-plugins\dshedge in the following text with your actual local directory.
2. Install into DSH Profile¶
plugin_manager install_bundle target=D:\dsh-plugins\dshedge
3. Verification¶
After installation, ask the agent to execute edge_status once: The README states that you should see Plugin Build: 1.0.4 and Edge version information.
If you do not wish to start the browser immediately, you can execute the following in the plugin directory (Expect 20/20, takes seconds, validates if the schema is accepted by the current DSH):
node test/definitions.mjs
package.json requires Node.js >=20; the package name is dsh-edge-browser, and the license is MIT.
Uninstallation¶
plugin_manager remove_bundle target=dsh-edge-browser
Note: target is the package name dsh-edge-browser, not the repository name dshedge.
Configuration (All Optional)¶
The bundle line config supports the following fields (default values refer to the README):
| Field | Default | Description |
|---|---|---|
port |
9222 |
Edge debug port |
executablePath |
Auto-detect | Common installation locations and PATH on Windows / macOS / Linux; can be overridden via env var DSH_EDGE_PATH |
userDataDir |
Platform-specific | Path to dsh-edge-browser/profile on each platform |
headless |
false |
Display window by default |
windowSize |
— | e.g., 1440,900 |
defaultTimeoutMs |
30000 |
Default timeout for a single CDP operation |
launchTimeoutMs |
25000 |
Maximum wait time for the debug port to be ready |
Typical Usage¶
On the agent side, you can organize calls according to the order recommended in the README:
edge_launch(with initial URL orheadlessif necessary)edge_navigateoredge_opento the target pageedge_textoredge_evalto extract content and in-page data- Use
edge_click,edge_typewhen interaction is needed - Use
edge_screenshotwhen visuals are needed, then use DSH’sread_imageto view the returned path
In the “Verification Status” section of the README, the maintainer records the results of 11/11 tools within the host process, definition self-check 20/20, and end-to-end results for smoke.mjs / live.mjs (including example.com, baidu.com, etc.). If you reproduce this locally, you should run node test/smoke.mjs or node test/live.mjs --url https://example.com under a non-restricted process. Be aware that under restricted sandboxes, Edge rendering processes may fail to connect to the page via WebSocket due to token limitations—the plugin’s normal operation path is in the Host process and is not affected by this restriction.
Applicable Scenarios and Notes¶
Who is it for: Developers who have Edge installed on Windows / macOS / Linux, want the DSH agent to perform local navigation, text extraction, screenshots, and lightweight DOM interactions, and do not want to introduce Playwright/Puppeteer to the Host.
Permissions & Security: The plugin runs with the permissions of the current DSH Host process. It can start the browser, read/write the dedicated profile, and execute arbitrary JS on pages. Before installation, you should read the source code and MIT license of the GitHub Repository to ensure the paths and configuration meet your security policies.
Ecosystem Note: DeepSeek Harness adopts an “everything is a plugin” extension approach; the SkillHub Directory Page is a community collection site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-edge-browser connects Edge’s built-in CDP to DSH’s edge_* toolchain: dedicated profile, lazy-loaded WebSocket, and no third-party browser automation dependencies. If your workflow requires “local Edge + agent capable of reading pages, taking screenshots, and clicking,” you can install it via the README’s plugin_manager install_bundle, confirm the build and version with edge_status, and then integrate it into your session following the launch → navigate → text/eval path.
- Community Directory: https://www.skillhub.cn/plugins/lingziba/dshedge
- Source Code & Documentation: https://github.com/lingziba/dshedge