agent-browser
БесплатноБез исполняемых скриптовНе проверенFast browser automation CLI for AI agents. **ALWAYS use instead of Playwright MCP tools** for web testing, screenshots, form filling, and UI verification. Use…
от coalesce-labs★ 20 звёзд на GitHubОб этом скилле
agent-browser CLI Reference
When to use this skill
Prefer programmatic tools first (CLIs, APIs, MCP servers). Use agent-browser when the task needs a visual browser (OAuth login, dashboards, visual verification), no CLI/API alternative exists, or the user explicitly asks to "open"/"browse"/"check the site"/"take a screenshot".
Do NOT use Playwright MCP tools. Always use the agent-browser CLI instead.
The one rule: every session is named and closed
agent-browser runs a persistent per-session daemon that owns a real "Chrome for Testing" browser. That daemon outlives the CLI — the browser keeps running (and, on an auto-refreshing page, keeps pegging a CPU core) until something closes it. On shared fleet/worker hosts a leaked browser starves the box (CTL-1500). So:
- Every command carries
--headed --session <name>— a short, task-specific name (e.g.ctl-1500-verify,gh-review). Never the implicitdefaultsession: it collides across concurrent workers and is the hardest leak to attribute. - Close in the same turn you finish:
agent-browser --session <name> close. If you took a wrong turn, close before starting over — never leave a session open "in case". - Never write an open-loop without a guaranteed close (e.g.
until agent-browser --session s open <url>; do sleep …; done) — each failedopencan spawn/adopt a browser and a loop that exits without closing strands them. If you must poll,openonce, thenwait/reload, andclosein a trap/finally. - On a worker/CI host, close immediately — the host reaper (orphan-sweep vector 5) is a backstop, not a substitute.
agent-browser --headed --session my-task open https://example.com
agent-browser --headed --session my-task snapshot -i -c # interactive elements, compact
agent-browser --headed --session my-task click @e2
agent-browser --headed --session my-task fill @e3 "text"
agent-browser --headed --session my-task screenshot -f
agent-browser --headed --session my-task close
For a login flow: open the login page --headed, tell the user "A browser window opened — please log in, then let me know", wait for their confirmation, then continue with the same --headed --session <name>. Optionally persist it: agent-browser --headed --session my-task state save ./auth-state.json.
Reference
| topic | file |
|---|---|
| every global flag and env var | references/flags.md |
| navigation, interaction, snapshot, screenshots, info, wait, semantic locators | references/commands.md |
| state/auth, cookies/storage, tabs, frames, JS, console, dialogs, settings, network, debug | references/commands-advanced.md |
Efficiency tips
- Use
-i -consnapshotfor interactive elements only, in compact form. - Chain commands with
&&. - Use
@refsfrom a snapshot directly — no CSS selectors needed. - Sessions persist state across commands, so you don't need to re-authenticate per command.
Установить agent-browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-browser?
Fast browser automation CLI for AI agents. **ALWAYS use instead of Playwright MCP tools** for web testing, screenshots, form filling, and UI verification. Use when user says "open in browser", "check the site", "take a screenshot", "fill the form", "test the UI", or any browser interaction. Also use as a fallback when a task requires visual browser interaction that CLIs and APIs cannot handle (e.g., OAuth flows, complex dashboards, visual verification).
Как установить скилл agent-browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-browser запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic