DeepSeek Harness Embedded Browser

Introduction

DSH hosts typically operate in headless environments, which creates obstacles for agents when handling steps requiring human interaction (such as logins, SMS verification codes, QR code scanning, CAPTCHAs, or hardware keys). Headless browsers cannot directly handle these interactions. The dsh-embedded-browser plugin deploys a browser environment within the DSH host. Agents drive it via tools, while operators can watch or take over the same tab in real-time via the DSH Web UI sidebar, thereby solving this pain point.

What is it

This plugin is maintained by imroc. It provides an independent browser tab for each DSH session. The AI uses browser_embedded_* tools to control the tab, while the operator monitors in real-time or takes manual control via the “Browser” tab in the DSH Web UI’s right sidebar. All sessions share the same persistent configuration profile, and login status is maintained across sessions.

Core Features

The plugin provides the following toolset:

  • browser_embedded_status: Reports running status, current URL/title, and whether a manual action is pending.
  • browser_embedded_navigate: Opens a URL; launches the browser on first use.
  • browser_embedded_snapshot: Reads the page title, URL, list of clickable/input elements, and visible text.
  • browser_embedded_click: Clicks via element index or visible text.
  • browser_embedded_type: Types content into a field; supports pressing Enter via submit.
  • browser_embedded_press: Presses Enter, Tab, Esc, arrow keys, etc.
  • browser_embedded_scroll: Scrolls up, down, left, right, or full screen.
  • browser_embedded_emulate: Simulates devices (e.g., iphone-14), themes (dark), or viewport, or resets to default (reset: true).
  • browser_embedded_eval: Executes JavaScript within the page and returns restricted JSON.
  • browser_embedded_screenshot: Returns a PNG image.
  • browser_embedded_ask_human: Displays instructions in the current tab and waits for the operator to press “I have completed”.
  • browser_embedded_close: Closes the tab for the session; the configuration profile remains.

Installation and Activation

For official installation channels, please refer to the Plugin Directory or the GitHub Repository.

After installation, tools are not registered by default. They must be activated via one of the following methods:
* Invoke the skill named browser-use.
* Enter the gesture /browser-use.
* Find a past successful invocation record in the session log (this reopens the tool gate after a plugin reload).

If you wish for the tools to be registered immediately upon plugin load, set lazyTools: false in the configuration.

Typical Usage

After enabling the tools, you can perform the following operations:

  1. Simulate a mobile device to view the page:
browser_embedded_emulate { "device": "iphone-14" }
browser_embedded_screenshot
  1. Switch to dark mode:
browser_embedded_emulate { "theme": "dark" }
browser_embedded_screenshot
  1. Reset the simulation environment:
browser_embedded_emulate { "reset": true }

Notes

  • The plugin runs in a GUI-less environment; the browser interface is provided by the DSH Web UI sidebar.
  • browser_embedded_emulate is only effective for the current session and is temporary; it does not modify global configuration.
  • Manual handling is required for logic such as logins, 2FA, and CAPTCHAs; the plugin only provides the display and operation interface.

Conclusion

This plugin provides a necessary human-interaction entry point for headless automation within the DSH environment, making it suitable for handling complex authentication flows.

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

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

Xiaoye