DeepSeek Harness Plugin

Azhe0306/dsh-connectors#browser-connector

Stars ★ 0 Category Browser & Web Added 2026-09-26

Browser automation connector: drives the local Edge or Chrome over the DevTools Protocol with zero runtime dependencies — launch a headless throwaway-profile browser or attach to one started with --remote-debugging-port, then navigate, read page text and interactive elements, click, type, and screenshot through 11 agent tools.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Azhe0306/dsh-connectors#path:/packages/browser-connector

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

浏览器自动化连接器:agent 直接驱动本机 Edge / Chrome。

  • 零依赖:Node 自带 WebSocket 说 DevTools 协议,浏览器发现走它自己的 GET /json/list。
  • 默认无头 + 一次性 profile:不抢焦点、不碰你的登录态;browser_connect 可接管你自己用 --remote-debugging-port=9222 开的浏览器。

安装

dsh plugin --profile web add github:Azhe0306/dsh-connectors#path:/packages/browser-connector

装好后这些工具可用:browser_launch、browser_connect、browser_tabs、browser_navigate、 browser_snapshot、browser_eval、browser_click、browser_type、browser_screenshot、 browser_close、browser_quit。

典型一轮:browser_navigate → browser_snapshot(拿到正文与可交互元素)→ browser_click / browser_type → browser_screenshot(看图确认)。

实现细节

  • core.mjs 同时是 MCP stdio 服务端(node core.mjs),index.js 是原生工具前端;两者共用同一份实现。
  • 启动后必须等文档真正就绪(readyState 到 interactive/complete 且 URL 不是 about:blank),否则会读到浏览器的启动空白页。
  • 浏览器命令行开标签时会多开一个 about:blank,选页时要跳过。

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.