core
Skill by vercel-labs
Core usage guide for agent-browser, a command-line tool that drives Chrome or Firefox for an AI assistant. It covers the snapshot-and-ref workflow for clicking, filling, extracting data and waiting on pages.
Install core
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel-labs/agent-browser /tmp/agent-browser && mkdir -p ~/.claude/skills && cp -r /tmp/agent-browser/skill-data/core ~/.claude/skills/coreRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel-labs/agent-browser /tmp/agent-browser && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-browser/skill-data/core ~/.gemini/antigravity-cli/skills/coreAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
agent-browser is a command-line tool that drives Chrome over CDP or Firefox over WebDriver BiDi. A snapshot returns the page's accessibility tree with a compact @eN ref for each element, and the assistant acts on those refs. The core loop is open a page, snapshot it, act on refs, then snapshot again after any page change.
This skill is the core usage guide, meant to be read before running any agent-browser commands. It covers navigation, clicking, filling forms, extracting text, screenshots, tabs, auth, waiting for content and running parallel sessions, and it points to separate references for detailed flags. It is aimed at assistants that interact with websites, fill forms, log into sites or test web apps.
Written from the project's SKILL.md and checked against it.
What it can do
- Snapshot and refsReads the page as an accessibility tree and gives each element a short @eN ref to act on.
- Interacting with elementsClicks, fills, types, selects, checks, uploads, scrolls and drags using refs or semantic locators.
- Reading pagesReads rendered page text, fetches docs pages as markdown, and gets text or attributes of elements.
- Waiting for contentWaits for an element, text, URL match, app condition or load event before the next action.
- ScreenshotsTakes screenshots when the user asks for one or for content the DOM cannot represent, such as a canvas.
- Parallel sessionsRuns named browser sessions so tasks do not share the default browser used by other agents.
- WebMCP toolsLists and invokes WebMCP tools that a page announces when one matches the authorized task.
- Saved flowsRuns a recorded task over direct HTTP first, falling back to the page, when a matching flow exists.
What you need
- Node.js and npm, to install agent-browser with npm i -g agent-browser
- Chrome, or Firefox 150 or newer for the Firefox engine
- On Linux, browser libraries installed with agent-browser install --with-deps
Try asking
- Log into my dashboard at example.com and tell me what is on the home page
- Fill out the contact form on this site with my name and email
- Take a screenshot of the pricing page and extract the plan names
Good to know
- Refs fail after a navigation to a new document, so a fresh snapshot is needed.
- wait --load networkidle can time out on pages with server-sent events, WebSockets or polling.
- The default unnamed session is shared with other agents on the machine and persists across conversations.
- --auto-connect does not support Firefox, and Firefox allows one BiDi client at a time.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skill-data/core/SKILL.md, skill-data/core/templates/authenticated-session.sh, skill-data/core/templates/capture-workflow.sh, skill-data/core/templates/form-automation.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(agent-browser:*)Bash(npx agent-browser:*)
-
SKILL.md19 KB -
references/authentication.md15 KB -
references/commands.md69 KB -
references/profiling.md3 KB -
references/proxy-support.md8 KB
Show all 14 files
-
references/session-management.md18 KB -
references/snapshot-refs.md10 KB -
references/streaming.md8 KB -
references/trust-boundaries.md7 KB -
references/video-recording.md9 KB -
references/webgpu.md7 KB -
templates/authenticated-session.sh5 KB -
templates/capture-workflow.sh2 KB -
templates/form-automation.sh2 KB
Alternatives to core
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
core: common questions
Why does a ref stop working after clicking a link?
A ref used after the page navigated to a new document fails with a no longer loaded error. Take a fresh snapshot after navigation to get new refs.
Should the assistant take screenshots to check the page?
The guide says to prefer snapshots and take a screenshot only when the user asks for one or for content the DOM cannot represent. Screenshots are not used to check whether an element exists.
Can this run with Firefox?
Yes, with --engine firefox on Firefox 150 or newer, or Zen Browser. Attaching to a running Firefox uses WebDriver BiDi.
How do I install core?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is core free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is core safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to core?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
