Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

browser-control

БесплатноБез исполняемых скриптовНе проверен

Drive the user's existing Chromium-family browser with deterministic Playwright. Use when asked to inspect, automate, test, or interact with a visible browser…

anomalycoот anomalyco★ 497 звёзд на GitHub

Об этом скилле

Browser Control

Browser Control is a driver, not an agent. The calling agent decides what to do; Browser Control runs deterministic Playwright code in the user's visible browser.

When Browser Control is installed as an OpenCode plugin, the plugin already registers this MCP server and exposes the packaged workflow as the @browser skill. Do not ask the user to install this skill separately or add an MCP configuration. Browser extension approval remains a separate user step.

Use one loop throughout: inspect, act, verify. Inspect the real page before choosing locators, act through the narrowest stable control, then verify the result through a URL or fresh page read. Never treat a successful click or human acknowledgment as proof that the task succeeded.

Core Workflow

1. Run The Task Directly

Start with the requested browser work. Relay-backed commands start the detached relay and wait for the extension; do not start browser-control serve first.

browser-control execute 'return { url: page.url(), title: await page.title() }'

Use browser-control doctor only when setup or runtime behavior is unclear. status and doctor are observational and never start the relay.

MCP startup, tool discovery, skill, and session_current do not contact the relay. The first operational tool call starts it if needed; relay-backed observational tools report unavailability instead of starting it.

For an externally supervised relay, set BROWSER_CONTROL_AUTOSTART=false to make ordinary calls fail when that relay is absent instead of launching another process. Existing relay connections and explicit relay restart still work.

Ordinary CLI/MCP/SDK calls never replace a running relay. On a build mismatch, coordinate with other agents before running browser-control relay restart. It preserves browser tabs and durable sessions but resets JavaScript state and snapshot refs. A busy or timed-out drain leaves the old relay running; finish recordings/captures and disconnect raw CDP clients rather than forcing a stop.

browser-control doctor
browser-control status --json

Completion: one execute returns a page result and a readable session id, or doctor identifies the concrete setup failure.

2. Choose The Page Deliberately

The bundled shim 0.0.26 preserves tab ownership during reconnection. Reload the unpacked extension after installing this shim update. DevTools-attached tabs are excluded from Browser Control's inventory. page.title() reads time out after five seconds if the page execution context remains unavailable; the read timeout does not close or replace the tab.

A bare CLI execute inside OpenCode reuses oc-$OPENCODE_SESSION_ID (lowercased), so calls from the same agent share one default tab. --session or BROWSER_CONTROL_SESSION takes precedence. Outside OpenCode, bare execute creates a fresh readable session and prints its continuation command. Use execute --rm for one-shot scripts: the relay closes all tabs that session opened after success or failure, even if the calling CLI disconnects. It cannot be combined with an explicit session.

browser-control session new "🎙️ elevenlabs"
browser-control execute --session "🎙️ elevenlabs" 'return page.url()'
browser-control execute 'return page.url()'
browser-control execute --rm 'await page.goto("https://example.com"); return page.title()'

MCP keeps one implicit process session. Omit session for that normal path, or call session_new and pass an explicit id when one MCP process needs multiple sessions.

To control a tab already open in the user's browser, ask the user to click the Browser Control toolbar button on that tab. Select it for one execute or adopt it for sticky reuse (omit --target-url / targetUrl when only one user tab is attached):

browser-control session adopt --session github
browser-control session adopt --target-url github.com --session github
browser-control execute --target-url github.com 'return page.url()'

execute --target-url selects a page for that call only. Continuing with just --session uses the session's default page, which may still be about:blank. For a multi-step task in an existing user tab, adopt it first. Always include page.url() when diagnosing an empty snapshot. Snapshot labels are compact descriptions; use ref() for actions rather than assuming their text is an exact Playwright accessible name.

targetUrl and targetIndex select existing attached pages; they never navigate. A URL selector must match exactly one page, and URL and index selectors cannot be combined. Adoption makes that tab the session default, closes the session's previous relay-created page, and is exclusive to one Browser Control session. Reset or delete releases an adopted user tab without closing it.

Adoption binds ownership and exact target identity before initializing automation. Until the first execute resolves the page, session status reports `connected: f

Полный SKILL.md на GitHub

Установить browser-control в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл browser-control?

Drive the user's existing Chromium-family browser with deterministic Playwright. Use when asked to inspect, automate, test, or interact with a visible browser tab; continue an authenticated browser workflow; handle 2FA, passkeys, CAPTCHAs, or payment confirmation; record browser behavior; or capture an authenticated network flow.

Как установить скилл browser-control?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл browser-control запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить browser-control с