dsh-doyourweb: A DeepSeek Harness Plugin for Reusing Existing Chrome/Edge Tabs

Introduction

Browser automation tasks often rely on already open pages and login states. Traditional approaches usually require launching a new automated browser instance or exporting cookies, which increases environment setup costs and results in the loss of current session context. The DeepSeek Harness plugin ecosystem aims to solve such problems. dsh-doyourweb is a networking tool plugin designed for this purpose, allowing you to directly reference and control logged-in Chrome or Edge tabs, thereby reusing existing session states.

Plugin Positioning

  • Description: Reference and control existing Chrome and Edge tabs from DeepSeek Harness.
  • Maintainer: SheepofSheep.
  • Category: Networking Tool.
  • License: MIT.

Core Features

  • Reuse Existing Sessions: Directly reuse logged-in HTTP/HTTPS tabs in Chrome and Edge without requiring re-login.
  • Menu Integration: List page titles, sites, and icons via the DSH @ and / menus.
  • Compact Reading: Support narrowing the scope via selectors or queries, with cursor-based pagination. The initial reference context has a default budget of 2,400 characters.
  • Batch Operations: Support batch execution of actions, with a maximum of 12 actions per call; stops upon encountering failure or navigation.
  • Data Extraction: Extract text, values, and href fields, with a maximum of 20 lines per extraction.
  • Local Screenshots: Save PNG screenshots locally and return the path, without using base64 embedding.
  • WebMCP Priority Control: Experimental feature that prioritizes WebMCP tools provided by the page, falling back to DOM snapshots if unavailable.

Installation and Activation

Installation Command:
Open Plugins > Add Plugin in DeepSeek Harness, select the official npm registry, and enter:

dsh-doyourweb

If the official repository is not synced or returns a 404, you can install via local build:

git clone --branch ver0.1.1 https://github.com/SheepofSheep/dsh-doyourweb.git
cd dsh-doyourweb
npm ci
npm run build

Open Plugins > Add Plugin in DSH and enter the absolute path of the built project directory.

Connecting the Browser:
1. Enter /browser in DSH to open the local connection page.
2. Enable Developer Mode in Chrome or Edge and load the extension/ folder (unpacked extension).
3. Compare the extension’s 4-digit pairing code with the request on the connection page, and approve after confirmation.
4. Use @ in DSH to select an open page.

Typical Usage

  • Reference Pages: Use @ in the conversation to select an open tab, then describe the task.
  • Read Content: Use the browser_read tool. The default mode: "auto" attempts to discover WebMCP tools first, otherwise returning a DOM snapshot. To specify a DOM snapshot, use mode: "dom" combined with selector, query, or depth for filtering. cursor supports pagination, and limit controls character length (400-8,000).
  • Execute Actions: Use the browser_act tool, passing the latest snapshot ID to perform actions like click, fill, press, or select.

Notes

  • Environment Requirements: Requires Node.js 22+ and DeepSeek Harness 0.2.0-rc.2.
  • Data Storage: The data directory is located at <DSH_HOME>/browser-tabs/ (default: ~/.dsh/browser-tabs/).
  • Budget Mechanism: The character budget calculates JavaScript characters (including JSON escapes and metadata), not model tokens. It limits the returned context, not DOM traversal time.
  • Pairing Mechanism: The plugin and browser extension must be paired via a 4-digit code. After pairing, the background auto-reconnects; there is no need to keep the popup open.
  • No Demo: Currently, there is no publicly hosted demo.

Conclusion

dsh-doyourweb reduces the dependency of browser automation on completely fresh environments, allowing models to work directly with already open tabs. Combined with DSH’s plugin mechanism, it is a practical tool for handling web content and executing batch operations. For more details, please refer to the GitHub Repository.

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

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

Xiaoye