herdr-browser
Connect browser automation tools to a Chromium view rendered inside a Herdr browser pane.
来源信息
- 仓库
- ogulcancelik/herdr-browser
- 最近来源活动
- 2026年7月27日 17:13
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 352
- 分支
- 22
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- herdr-browser
- description
- Connect browser automation tools to a Chromium view rendered inside a Herdr browser pane.
# Herdr Browser
Use this skill when the user wants Browser Use, PinchTab, Playwright, Chrome
DevTools MCP, or another CDP client to control the browser visible in Herdr.
Do not install `herdr-browser` globally. Discover the installed or linked plugin
root by running:
```bash
herdr plugin list --plugin official.browser --json
```
Read `result.plugins[0].plugin_root` from the JSON response. Run the CLI with
Bun from any working directory:
```bash
bun run "<plugin_root>/src/cli.ts"
```
List live browser views before connecting:
```bash
bun run "<plugin_root>/src/cli.ts" views
```
Select the intended view from its `view_id`, `pane_id`, URL, title, and tabs.
Never guess when more than one view is present. Connect with:
```bash
bun run "<plugin_root>/src/cli.ts" connect --view <view_id>
```
The response contains a view-scoped `cdp_http_url`, `browser_ws_url`, and the
currently active target. Use the browser-level endpoint so the automation tool
can create, inspect, select, and close multiple tabs in that view.
Standard CDP `Target.createTarget`, `Target.activateTarget`,
`Page.bringToFront`, and `Target.closeTarget` operations synchronize with the
Herdr tab strip and rendered target. A tool that changes only its own internal
selected-page state must also bring that page to front; local tool state is not
observable through CDP.
Tool bootstrap:
- Browser Use: set `BU_CDP_URL` to `cdp_http_url` or `BU_CDP_WS` to
`browser_ws_url`.
- PinchTab: enable its external attach policy, then attach a bridge to
`browser_ws_url` or `cdp_http_url`.
- Playwright: call `chromium.connectOverCDP(cdp_http_url)`.
- Playwright MCP: pass `--cdp-endpoint=<cdp_http_url>`.
- Chrome DevTools MCP: pass `--browser-url=<cdp_http_url>`.
Herdr Browser owns Chromium lifecycle. Closing a connected automation client
disconnects it from the gateway without terminating Chromium. Closing the Herdr
browser pane closes its view and gateway.
在 GitHub 查看