agent-browser

Drives a browser to navigate, interact, and extract data via CLI.

40.3k|2.6k|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser-vercel-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-browser
Source: https://github.com/vercel-labs/agent-browser/tree/main/skills/agent-browser
Command: npx skills add https://github.com/vercel-labs/agent-browser --skill agent-browser-vercel-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Browser automation tasks for AI agents require reliable, repeatable interactions with web pages, forms, and data extraction. This Skill provides a CLI to drive headless browsers, capture compact element refs, and perform actions with minimal context.

Core Features & Use Cases

  • Navigate to URLs and render dynamic pages.
  • Snapshot elements to obtain compact refs (@eN) for deterministic interactions.
  • Interact with elements via refs (click, fill, type, select), including stateful sessions and persistence.
  • Extract text, attributes, and page data; capture screenshots and PDFs; compare states.
  • Use cases include form automation, data extraction, testing, QA, and AI-assisted web tasks.

Quick Start

Open a website, snapshot to gather element refs, then use those refs to interact and automate tasks.

Frequently Asked Questions about agent-browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser tasks for AI agents?

Browser tasks for AI agents are automated by driving a headless browser to navigate, interact, and extract data. This skill provides a CLI to perform actions like opening websites, filling forms, and taking screenshots with minimal context.

What is snapshot-based element ref interaction in browser automation?

Snapshot-based refs capture compact element references like @eN for deterministic browser interactions. After navigating to a URL and rendering the page, you snapshot elements to obtain these refs and use them to click, fill, or select controls reliably.

How do I extract data and capture screenshots from dynamic web pages?

Data extraction and screenshot capture are performed by driving a headless browser to render dynamic pages. The automation script navigates to the target URL, interacts with page elements via refs, and extracts text, attributes, screenshots, or PDFs.

Does browser automation support stateful sessions and persistence?

Browser automation supports stateful sessions and persistence for AI agents. You can maintain session isolation across multiple interactions, allowing continuous form automation and data extraction tasks without losing the current page state.

What are the limitations of using headless browser automation for web scraping?

Headless browser automation for web scraping relies on snapshot-based refs, which require re-snapshotting if the page DOM changes dynamically. It is best suited for deterministic interactions rather than highly volatile web pages with constantly shifting elements.

Can I use browser automation for form filling and QA testing?

Browser automation is fully applicable for form filling, QA testing, and data extraction. By driving a headless browser, you can navigate to forms, use element refs to fill and submit data, and compare page states to verify application behavior.