dsh-sidebrowser: Enabling Agents to Operate the Same Web Page in the DSH Desktop Sidebar

Preface

When performing web-related tasks in DSH, the common practice is to connect an external browser, extension, or proxy so that the Agent can “see” the page and perform clicks and inputs. However, the page and the sidebar you open in the client are often two separate environments; login states, viewports, and permissions need to be aligned, and troubleshooting requires cross-referencing between tool outputs and the actual interface.

dsh-sidebrowser converges the operational target to the web pages already open within the official “Browser” sidebar on the right side of DSH Desktop. Observation, operation, extraction, and post-action verification utilize the same guest pipeline, eliminating the need for extra Chrome instances, extensions, background proxies, or patching the installation package. The following section covers its positioning, toolset, installation methods, and usage notes.

What is this

  • Repository: AsakuraAOI/dsh-sidebrowser
  • Maintainer: AsakuraAOI
  • Category: Web Access Tool (Community Directory skillhub entry)
  • Package Name & Version: dsh-sidebrowser 0.4.2 (subject to README)
  • Summary: DSH Official Sidebar Browser—structured observation, native input, extraction, and post-action verification; also provides a set of browser_dev_* diagnostic tools for development purposes.

Implementation references the observation, operation, and verification flows of web-access and is based on the sidebar integration code of dsh-agent-browser. General browsing tools are unified under browser_*, and development diagnostics under browser_dev_*; three legacy debugging tool names have been removed.

Core Features

Sharing the Same Page with the Sidebar

The Agent reads and operates on the page within the sidebar tab belonging to the current DSH session, inheriting the desktop guest’s permissions, download behavior, login state partitioning, and restart behavior. The plugin does not persistently store cookies separately. Open the “Browser” on the right side of the conversation, complete manual login, and then instruct the Agent in the chat to perform snapshots, clicks, inputs, and navigation on that page.

Under the Web profile, cross-origin iframes can only be listed, not read or operated on; the desktop profile uses the native guest.

General Browsing Tools (browser_*)

Tool Function
browser_tabs Lists current session tabs, carriers, loading, and failure statuses
browser_snapshot Body text, heading hierarchy, links, element refs, iframe boundaries, and capability status
browser_read Targeted reading by text, elements, or HTML; can limit area via selector or ref
browser_act click, type, press, scroll, select, reload, wait, click_xy, etc.
browser_extract Bounded JSON extraction of links, headings, tables, lists by selector
browser_navigate Creates new pages or navigates existing tabs (requires explicit tabId for multi-tab)
browser_screenshot Screenshots of the visible area delivered via DSH attachment service; preset applies only to the single capture
browser_viewport Adaptive, mobile, tablet, desktop, or custom viewport
browser_close Closes session tabs and verifies closure
browser_eval Executes JS within the page (can be disabled via config)

Native Input & Post-Action Observation: The default inputMode is auto. Clicks/key presses prioritize sendInputEvent, while text uses insertText and native editing commands; native is strict native mode, dom is explicit script backend, and coordinate clicking is only supported in native. Each action is accompanied by a new observation by default to facilitate checking form or body area changes; actionDispatched indicates the action has been dispatched, and verificationRequired reminds that business results still need verification.

Element Refs: Within the same document, URL, and unchangeable target, refs remain valid after repeated reads or partial reads. Navigation, DOM replacement, or identity changes will invalidate old refs; they will not automatically re-point to new nodes with the same selector name.

Development Diagnostic Tools (browser_dev_*)

Without opening DevTools windows or exposing CDP/debugging ports, you can collect console, network, element box models, performance metrics, storage, and DOM monitoring on the current tab. Examples include:

  • browser_dev_debug: Start, query, clear, or stop collection
  • browser_dev_console / browser_dev_network: Logs & Fetch/XHR, WebSocket/SSE, etc. (sensitive headers and common query parameters are masked)
  • browser_dev_inspect / browser_dev_styles: Layout and readable CSSOM, temporary style patches
  • browser_dev_performance / browser_dev_storage / browser_dev_watch / browser_dev_sources

When troubleshooting web issues, you can first call browser_dev_debug on the same sidebar page to start collection, then operate as usual, and finally read browser_dev_console and browser_dev_network; use stop to restore wrapping and discard history when finished.

Operational Feedback on the UI

While the Agent is using the browser, a blue breathing glow appears around the target page (persisting throughout the Agent run and fading out with the session); a simulated cursor follows click and input positions, with circular feedback on clicks. Prompts are drawn on the DSH interface layer and are mouse-transparent, without modifying the webpage DOM or mixing into body extraction or screenshots. The system setting “Reduce Motion” is respected accordingly.

Installation and Activation

Installation command (from README):

dsh plugin --profile desktop add 'github:AsakuraAOI/dsh-sidebrowser'

Restart DSH after installation to allow both Host and Client to load the plugin.

Notes:

  1. Deactivate other plugins that register browser_* tools with the same name first to avoid conflicts.
  2. Executing JavaScript within target webpages is allowed by default; if not needed, set enableEval: false in the bundle config.

Optional configuration example (bundle entry after installation):

- id: dsh-sidebrowser
  name: 'dsh-sidebrowser'
  config:
    enableEval: true
    observeAfterAction: true
    maxReadChars: 20000
    snapshotMaxChars: 8000
    screenshotMaxWidth: 1568

The README states initial adaptation for DSH Desktop 0.2.0-rc.2 / Cordis 4.0.4; the author’s local verification version was 0.2.1-rc.2, Electron 44.7.0. Please refer to the DSH version in your environment.

Typical Usage

First, do two things: Open the target site in the right sidebar and complete login; use natural language or slash commands in the chat to constrain the Agent to observe first, then operate, and verify step-by-step.

Example prompt from README:

/dsh-sidebrowser Read the current sidebar webpage, observe the page first, then operate based on my task, and verify results at every step.

You can also directly request the Agent to call browser_tabs and browser_snapshot; use browser_navigate for new pages; specify tabId for multi-tab scenarios.

browser_act parameter example (ref from snapshot):

{"action":"type","ref":"full ref obtained from previous snapshot","text":"Hello","inputMode":"auto"}
{"action":"wait","selector":".result-list","state":"visible","timeoutMs":4000}

Partial reading example:

{"mode":"elements","selector":"form#mission","maxElements":20}

Debug example for starting network and body collection:

{"action":"start","captureBodies":true,"maxEntries":100}

Applicable Scenarios and Notes

Suitable for: Scenarios where you need to complete login within the DSH Desktop sidebar and let the Agent perform structured browsing, form operations, bounded extraction, or console/network/layout troubleshooting on the same visible page without modifying the installation package.

Boundaries and Limitations (Stated in README, keep in mind when using):

  • Does not provide cross-origin iframe DOM, full accessibility tree, automatic file uploads, or full browser-level network scraping; Workers, cross-origin sub-frames, closed Shadow Roots, etc., are not covered.
  • Multi-window Inspect has upstream limitations regarding broadcasting and “first valid response”; single-window usage is recommended; Agent needs to re-observe after the user takes over the page.
  • Timeouts end the wait but cannot cancel underlying operations already handed to Electron; check status after timeout instead of automatically repeating submissions.
  • browser_read HTML and browser_eval may retrieve sensitive site fields; snapshots mask common credential fields but are not a universal privacy filter.
  • Passing tests does not mean all real site logins and complex controls are verified; target sites should be tested independently.

Security and Trust: The plugin runs with the current DSH process permissions and can execute JS in the page by default. Please read the repository source code, LICENSE, and THIRD_PARTY_NOTICES.md before installation to ensure compliance with your requirements. The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; skillhub.cn is a community directory and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-sidebrowser binds the Agent’s web capabilities to the official DSH Desktop sidebar: a single set of browser_* tools handles observation, native input, extraction, and navigation, while browser_dev_* provides bounded diagnostics when deep page investigation is needed. If you already use the sidebar in the desktop client to browse internal networks or sites requiring login, you can install via the command above, restart, and start with “observe first with browser_snapshot, then operate and verify.”

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

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

Xiaoye