dsh-helper-plugin-workspace-browser: Workspace Isolated Chrome and workspace_browser_* Tools

Introduction

In DSH, the common approach to let models read web pages and click buttons is to install a browser extension and use the browser_* tools, connecting to the Chrome you use daily. Extensions make it convenient to reuse existing login state, but the view is mostly text snapshots, and it’s tied to your local main browser.

If you want each workspace to have its own browser process and login state, see a real-time view in the right sidebar, and use a set of tools with an independent prefix alongside extension-type plugins, dsh-helper-plugin-workspace-browser is the web tools plugin for this scenario. Below we introduce what it is, how to install it, how to use it, and the differences from the extension route.

What This Is

An open-source DSH plugin by maintainer x102201 on GitHub (current package version 0.1.0, MIT license). It launches a Chrome with a debug port for the current workspace: you see the view in the DSH right sidebar, and the model reads and operates pages through workspace_browser_*.

It does not take over your daily browser, nor does it install extensions. Each workspace has an independent profile and login state; Chrome must already be installed locally (the plugin does not download a browser for you). The community catalog categorizes it as “web tools”. SkillHub catalog page: https://www.skillhub.cn/plugins/x102201/dsh-helper-plugin-workspace-browser.

Differences from Extension-Type Plugins

The extension route (e.g., dsh-browser-control) uses an extension plus a debug bridge, connecting to the browser you’re currently using; this plugin launches a separate Chrome process, with no extension, directly connecting to the debug port.

Extension route This plugin
Relationship with browser Extension plus debug bridge No extension, direct debug port connection
Setup Install extension Click “Launch” in the capsule
Login state What’s already in the daily browser The workspace’s own profile; sites need to be logged in again
What you see Mostly text snapshots Real-time view in right sidebar
Tool names browser_* workspace_browser_*, can be installed alongside extensions

Core Features

Suitable Tasks

  • Open web pages, let the model read the body text and summarize (summaries are written by the model; the plugin only provides page text).
  • Click, type, and navigate pages using page controls; controls are identified by snapshot element IDs (e.g., e1, e2) from the current snapshot, not by recognizing screenshots.
  • Save working steps as skills, recall them from the input box next time.

Not suitable for: operating an already-logged-in daily browser; letting the model write page scripts or click coordinates by itself.

Model Tools (prefix workspace_browser_)

Tools are registered when the plugin loads, not added/removed as the browser starts/stops; calling them when the browser isn’t running returns an error with an explanation.

Type Tools
Read snapshot, get_text, list_tabs, select_tab, screenshot
Write click, type, press, scroll, navigate, open_tab, close_tab, back, forward, reload, wait
Save skill save_skill (needs confirmation in conversation first)

No evaluate by default. snapshot returns visible body text first, then operable control IDs; clicking and typing use these IDs, not CSS or coordinates. Page text is wrapped in untrusted markers, and the model should not treat them as instructions. Reading and writing pages uses playwright-core connected to the launched Chrome; process, tabs, view, and screenshots go through the Chrome Debugging Protocol.

Interface and Data

Click the capsule next to the input box to open a small panel. After clicking “Launch”, a Chrome window appears and the right sidebar expands to show the view. Default layout is two panels stacked vertically: the top is the currently focused page, the bottom is tab thumbnails (filmstrip); the divider can be dragged.

Workspace data directory:

<workspace>/.workspace-browser/
├── chrome-profile/     # This workspace's login state
├── skills/             # Skill descriptions
├── shots/              # Screenshots
└── endpoint.json       # Port hint; does not indicate the browser is still alive

When there’s no workspace session, <DSH_HOME>/workspace-browser/_ungrouped/ is used.

Installation and Activation

Requires Node.js 20 or higher, and local Chrome. Installation modifies the current web profile’s package.json (dependencies and dsh.profile.bundles). After installation, restart dsh --profile web (or dsh web); the bundle list is only read once at startup.

Install via GitHub (recommended, no need to clone the repo):

dsh plugin --profile web add github:x102201/dsh-helper-plugin-workspace-browser

If you already have the source locally and need to follow changes, you can use absolute path link installation:

dsh plugin --profile web add link:/absolute/path/to/dsh-helper-plugin-workspace-browser

Note: cordis.patch.yml has already inserted loader id workspace-browser; inserting the same id in the profile again will report duplicate loader entry id; installing the same-named tool twice will also cause loading failure. This plugin’s tool prefix doesn’t conflict with browser_*.

The plugin runs under DSH host process permissions; before installation, it’s recommended to review the source code and MIT license on GitHub: https://github.com/x102201/dsh-helper-plugin-workspace-browser.

Typical Usage

Open this workspace’s browser

Click “Launch” in the capsule; after closing the window, the capsule returns to “Not started” in about half a second, requiring another click on “Launch”. If Chrome is not found, the version is too low, or there are multiple candidates, the small panel will explain the reason; you can specify the chrome.exe path in the plugin configuration area.

/browser command

Use /browser in the input box (unregistered /commands will be directly rejected by DSH):

Input Plugin behavior What the model sees
/browser Launches window and opens view No new message
/browser https://… Uses existing tab if same URL exists, otherwise opens new one in background URL and tab id
/browser https://… following text Same as above Plus this text
/browser a paragraph without URL Opens window and view, doesn’t open a new tab The entire paragraph, model decides the path
/browser --new https://… Forces new tab Same as the URL line

What’s given to the model is chip-style context; the expanded instructions require using only workspace_browser_*, not DSH’s built-in web scraping or browser_*. Already-open tabs can also be “added to conversation” from the filmstrip.

Skills

Skills are recorded in <workspace>/.workspace-browser/skills/<name>.md, not the host’s .dsh/skills/. Can be initiated via /browser new skill, /browser save skill, etc.; the model repeats the steps and only writes them after your consent. The input box @ can select skills; right-clicking the filmstrip can add to conversation, view, delete, etc.

Configuration Points

In the sidebar “Plugins” → “Installed”, this plugin’s card; configuration is written in the profile’s cordis.patch.yml user layer (namespace is the loader row id workspace-browser). Common items include: capsuleEnabled (capsule), debugPort (0 for auto-allocation), userDataDir (leave empty to use workspace directory), instanceOnDshExit (keep or close), view stream frame rate and quality, etc. User data directory, debug port, cross-origin, and exit behavior take effect on the next browser startup.

Applicable Scenarios and Notes

Suitable for: needing a Chrome independent of the workspace, real-time preview in the right sidebar, running in parallel with browser_* extension plugins; wanting to sediment repetitive web operations as workspace-local skills.

Notes: site login state is separated from the daily browser, requiring re-login in this plugin’s profile. Write operations are executed directly by tools. The DeepSeek Harness ecosystem is “everything is a plugin”; SkillHub is a community catalog, with no official affiliation with DeepSeek / its parent company High-Flyer.

Repository and design notes (interfaces and actual tests): https://github.com/x102201/dsh-helper-plugin-workspace-browser (DESIGN.zh.md).

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

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

Xiaoye