@dsh-external/dsh-browser-use: Local Browser Control Capability for DeepSeek Harness

The core design philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” When an agent needs to operate on real web pages rather than just reading text, existing solutions often struggle to balance operational depth with visualization. Here, we introduce @dsh-external/dsh-browser-use, ported from the browser-use-plugin / control-browser skills of ZCode. It implements an “ARIA snapshot-first” operation paradigm across DSH’s tools, prompt segments, and UI.

Core Features

This plugin provides a set of tools and panels to drive a local Chromium instance for web operations.

  1. Browser Control: browser_open (open URL), browser_navigate (navigation), browser_tabs (multi-tab management), browser_wait (waiting).
  2. Interaction: browser_click (click), browser_type (input text), browser_press (send key presses).
  3. Reading & Evaluation: browser_snapshot (read ARIA snapshot for localization), browser_eval (JS evaluation), browser_screenshot (screenshot).
  4. Visualization Panel: Provides a right-side panel to view the browser screen in real-time (requires deploying and mounting an attachment service).

Installation and Enablement

Install using the built-in DSH plugin manager.

# Use command line
dsh plugin --profile <profile> add github:hu568/dsh-plugin-browser-use

# Or use plugin manager
plugin_manager action=install_bundle target="github:hu568/dsh-plugin-browser-use"

After installation, the plugin is appended to the profile’s dsh.profile.bundles, and its cordis.patch.yml injects dsh-browser-use into the host combination. It usually takes effect immediately during runtime; otherwise, simply restart DSH.

Typical Usage

Once installed, the Agent can control the browser by calling tools.

  1. Open a webpage and get an initial snapshot:
    browser_open
  1. Read the page structure (ARIA snapshot):
    browser_snapshot
  1. Locate and click an element based on its ref:
    browser_click
  1. Fill in text in an input box:
    browser_type

Known Limitations and Considerations

  1. Page Refresh: The Client side takes effect after a page refresh. If the page loads earlier than the injection, the client module will not be imported.
  2. Screenshots: browser_screenshot requires deploying and mounting an attachment service.
  3. Navigation Protocol: The goto tool only accepts http: / https: / about:blank.
  4. Authentication: The panel route lacks independent authentication; other processes in the same origin can also call the /input interface.
  5. Cookie Mechanism: Session cookies (without Expires/Max-Age) are not retained; only persistent cookies are retained across processes.
  6. Process Occupation: The same profile cannot be occupied by two processes simultaneously.
  7. System Calls: Do not use explorer.exe to open URLs; use ShellExecute semantics instead (use PowerShell or cmd on Windows).

Technical Implementation

  • Dependencies: Runtime depends on playwright-core ^1.56.1, utilizing the locally cached Chrome for Testing.
  • Startup Method: The browser uses lazy loading; it is launched only upon the first call to browser_open and released when the plugin is uninstalled or hot-reloaded.
  • Persistence: Uses a persistent profile by default (<DSH_HOME>/browser-use/profile) to save login states.
  • Source Code: lib/ is the sole source code, written in pure JavaScript (ESM), requiring no build chain.

With this mechanism, DSH Agents are no longer limited to conversation but can take over the browser to complete a full chain from navigation and operation to verification. For automation tasks involving logins, CAPTCHAs, or complex forms, this is a practical toolset.

Source Code & Directory Page: GitHub

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye