agent-browser
This skill should be used when automating browser interactions via Vercel's agent-browser CLI. It handles web page navigation, form filling, screenshots, and…
от jikig-ai★ 21 звезда на GitHub
Установить agent-browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
agent-browser: CLI Browser Automation
Vercel's headless browser automation CLI designed for AI agents. Uses ref-based selection (@e1, @e2) from accessibility snapshots.
Setup Check
# Check installation
command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED - run: npm install --prefix ~/.local -g [email protected] && agent-browser install"
Install if needed
npm install --prefix ~/.local -g [email protected]
agent-browser install # Downloads Chrome for Testing (~300MB)
# On Linux if system deps missing:
# agent-browser install --with-deps
Required launch flag on Linux: --no-sandbox
On Ubuntu 23.10+, containers, and VMs, the host's AppArmor policy restricts
unprivileged user namespaces, so Chrome for Testing cannot initialize its zygote
sandbox and the browser fails to launch. Export the no-sandbox flag once per
session before the first agent-browser command — the daemon reads it at
launch and every later command in the session inherits it:
export AGENT_BROWSER_ARGS="--no-sandbox"
Inline alternative (first open only): agent-browser open <url> --args "--no-sandbox".
This confines --no-sandbox to agent-browser's own ephemeral automation Chrome —
the same posture Playwright already runs here; it does not touch your real browser.
Troubleshooting: Chrome fails to launch / open hangs (no usable sandbox)
Symptom on pinned 0.22.3: agent-browser open <url> hangs indefinitely with
zero stdout/stderr (even --debug prints nothing). On newer versions it fails
fast with No usable sandbox! ... unprivileged user namespaces ... AppArmor and a
--args "--no-sandbox" hint. Both are the same cause.
- Set the launch flag:
export AGENT_BROWSER_ARGS="--no-sandbox"(see above). - If it still fails, a stale/wedged daemon may be holding the socket. Clear it:
pkill -f agent-browser-linux-x64; rm -rf /tmp/agent-browser/* "/run/user/$(id -u)/agent-browser/"*then retry. (Never killplaywright-mcpprocesses — those are a separate stack.) The commonest cause is a daemon whose worktree was REAPED: resolve each match's/proc/<pid>/cwdand expect one ending(deleted), often weeks old and inherited by every later session on the machine. Such a daemon does not answer and survives SIGTERM — it needskill -9. Nothing in the CLI's error names any of this; the only symptom isResource temporarily unavailable (os error 11)(#7947). - Verify:
AGENT_BROWSER_ARGS="--no-sandbox" timeout 45 agent-browser open https://example.com --headless→ exit 0 + a✓line.
Troubleshooting: Playwright MCP backend closed between calls
This is the other browser-automation symptom #6605 reported (the "MCP tools
de-register" half) — distinct from the agent-browser CLI hang above, and covering the
Playwright MCP stack. If a mcp__plugin_soleur_playwright__browser_* call
(or the same call on a host's own mcp__playwright__* registration) returns
browserBackend.callTool: Target page, context or browser has been closed, the browser
backend dropped while the MCP server itself stayed registered (a lifecycle event, not a
dead tool).
Two known causes, check in this order. (1) A hook killing the browser at the end of
a turn. Older plugin versions registered browser-cleanup-hook.sh on Stop, which
fires every turn and SIGTERMed every Playwright Chrome of the user (ADR-271; method in
knowledge-base/project/learnings/bug-fixes/2026-10-04-stop-hook-killed-live-playwright-chrome-heartbeat-theory-refuted.md).
Tell-tale: the next call after a turn boundary fails, and the session transcript
(~/.claude/projects/<slug>/<session>.jsonl) carries a hook_success attachment whose
hookEvent is Stop and whose command matches browser-cleanup; the kill text
Browser cleanup: killed N orphaned Playwright Chrome process(es) is in
attachment.stderr, not stdout. The hook is removed from the repository, but a
session may run the installed plugin copy, which keeps it until the plugin is updated:
- Check (read-only): take
installPathforsoleur@soleurfrom~/.claude/plugins/installed_plugins.json, then run `jq -c '.hooks.Stop[].hooks[].command' /hooks/hooks.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/playwright-mcp-profile-slot.sh
- scripts/playwright-mcp-redact-proxy.py
- scripts/redact-a11y-snapshot.py
FAQ
Что делает скилл agent-browser?
This skill should be used when automating browser interactions via Vercel's agent-browser CLI. It handles web page navigation, form filling, screenshots, and data scraping using ref-based element selection.
Как установить скилл agent-browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-browser запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…