browser-automation
Use the Browser Automation BB plugin to inspect and automate persistent browser pages in an explicit desktop or local headless session. Use for browser…
от get-bb★ 15 звёзд на GitHub
Установить browser-automation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Use bb browser-automation. Open one session, retain its session ID, then inspect,
act, and verify in short scripts.
--machine accepts an exact host ID or an unambiguous machine name. Exact IDs
take precedence over names; unknown or ambiguous names fail before opening a session.
Choose --backend local --headless --machine <host-id> for headless Chrome on
an enrolled host. Plugin-owned local/headless Chrome launches with --no-sandbox,
disabling Chrome's sandbox. This bb has no in-app desktop browser:
--backend desktop is accepted but refused with desktop_unavailable. Never
silently choose a different host or mode.
The CLI uses the
current thread, or --thread <id> outside a thread. Each session belongs to
that thread.
CLI opening:
bb browser-automation open --backend local --headless --machine <host-id> --json
Run scripts:
bb browser-automation run <session-id> --script 'const p = await browser.getPage("main"); await p.goto("https://example.com"); await p.snapshot()' --json
bb browser-automation run <session-id> --script 'const p = await browser.getPage("main"); await p.click("ref/e6"); await p.snapshot()' --json
bb browser-automation screenshot <session-id> --page main --json
Take a fresh snapshot before using refs after navigation or document changes.
Use refs from that session's DevBrowser snapshot. Do not mix agent-browser refs
or invent selectors. Prefer a cheap URL/text/snapshot check after each action;
request a screenshot when visual verification matters. Use
await p.shot({type:"jpeg",maxEdge:960,quality:70}); undefined inside scripts to
return a bounded JPEG file.
run and screenshot return JSON with hostId and images, where each image
has path, mimeType, width, and height. The path is in the browser session's
temporary directory on that host. Use your image-reading tool on the path when
you are on the same machine. If the browser host differs, fetch the image to
local temporary storage first (substitute the returned path and host ID):
bb file read '<image-path>' --host '<host-id>' --json | node -e '
const fs = require("node:fs"), os = require("node:os"), path = require("node:path");
const file = JSON.parse(fs.readFileSync(0, "utf8"));
if (file.contentEncoding !== "base64") throw new Error("Expected binary image");
const destination = path.join(fs.mkdtempSync(path.join(os.tmpdir(), "browser-image-")), "capture.jpg");
fs.writeFileSync(destination, Buffer.from(file.content, "base64"), {mode: 0o600});
console.log(destination);
'
Read the printed local path with your image-reading tool. Do not print base64 image bytes into the conversation. Read or copy captures before closing the session: cleanup removes its temporary directory. Remove local copies when finished.
A local headless open returns a previewDirective, for example
::browser-preview{session="<session-id>"}. Copy it into your next message
exactly once as a standalone line, before you continue working. Do not wrap it
in backticks or a code fence, and do not invent or edit the session ID. BB
renders it as a live view of that browser in the chat, which the user can
expand, so they can watch while you work. Desktop
sessions return no directive; that browser is already visible in the side
panel. bb browser-automation preview <session-id> --json reports the live
frame's url, title, size, and sequence without image bytes; it is not a
substitute for screenshot when you need to see the page.
pages lists persistent pages. Runs serialize within a session. Scripts are
trusted JavaScript with Puppeteer-style DevBrowser APIs, not a sandbox.
--script-file requires --script-host <host-id> naming the source host explicitly. Browser file
operations and localhost refer to the browser host. Transfer files explicitly.
Stop cancels running and queued work and releases desktop control. Cancellation
and timeout stop the session too; open a new session to resume. Close disposes
owned Chrome and desktop tabs the session opened while preserving a --tab tab.
Close sessions after use. Five-minute idle and thirty-minute absolute expiry
apply. Timeouts default to 30 seconds, maximum 120 seconds: pass either
--timeout-ms <1000-120000> or --timeout <duration>, where a duration carries
a unit (90s, 2m, 1500ms) and a bare number is read as seconds (1-120) or
milliseconds (1000-120000).
A run may return at most 4 screenshots, JPEG only, 500 KB combined; a larger or
differently encoded capture fails the run. bb browser-automation --help and
bb browser-automation <command> --help print every flag with these limits.
Unknown commands and flags fail with a suggestion, and with --json a failure
prints {"ok":false,"error":{"code":…,"message":…,"hint":…}} on stdout (code
session_unavailable when the session stopped or expired, screenshot_limit
for capture limits) while the same message stays on stderr.
An unavailable backend or a failed runtime install is an actionabl
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл browser-automation?
Use the Browser Automation BB plugin to inspect and automate persistent browser pages in an explicit desktop or local headless session. Use for browser navigation, snapshots, clicking, forms, and verification screenshots.
Как установить скилл browser-automation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser-automation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…