agent-browser

Automate browser navigation, form filling, screenshots, and data extraction via a CLI.

7|Updated May 13, 2026
One-click install
npx skills add https://github.com/DawnMoon1542/agents-skills --skill agent-browser-dawnmoon1542
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-browser
Source: https://github.com/DawnMoon1542/agents-skills/tree/main/agent-browser
Command: npx skills add https://github.com/DawnMoon1542/agents-skills --skill agent-browser-dawnmoon1542

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agent-browser, and includes references (resource) components.

What problem does it solve? Manually interacting with websites for testing, scraping, or repetitive form entry is slow and error-prone. This Skill gives AI agents programmatic control of a real Chrome/Chromium browser through a simple CLI, turning multi-step web tasks into scriptable commands. ## Core Features & Use Cases - Snapshot-and-Ref Interaction: Get compact accessibility-tree snapshots with element refs (@e1, @e2) to click, fill, select, and scroll without parsing raw HTML. - Authentication & Sessions: Reuse login state via auth vault, persistent profiles, session names, or state files, including OAuth and 2FA flows. - Capture & Verification: Take annotated screenshots, save PDFs, record video, diff page states, and run JavaScript in the page context. - Use Case: Ask the agent to log into a web app, navigate to a dashboard, extract table data, and save a full-page screenshot as evidence — all in one automated workflow. ## Quick Start Ask the agent to open a website with agent-browser, snapshot the interactive elements, fill in the login form, and take a screenshot of the result.

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 actions with agent-browser?

Open a URL with agent-browser open, run snapshot -i to get element refs like @e1, then use click, fill, or select with those refs. Re-snapshot after any navigation or DOM change because refs are invalidated when the page changes.

How do I handle login and authentication in browser automation?

Use the auth vault to store encrypted credentials and run agent-browser auth login, or save session state with state save and reload it later. You can also import cookies from an already-logged-in Chrome via --auto-connect.

Can agent-browser run multiple browser sessions in parallel?

Yes, use the --session flag with distinct names to create isolated browser contexts with separate cookies, storage, and tabs. List active sessions with agent-browser session list and close each one when finished.

Why does agent-browser report a ref not found error?

Refs are invalidated whenever the page navigates or the DOM changes, such as after clicks, form submissions, or dynamic loading. Run snapshot -i again to obtain fresh refs before interacting further.

Does agent-browser support mobile or iOS testing?

Yes, it supports iOS Simulator via the -p ios flag with Appium and Xcode on macOS, including tap and swipe gestures. On desktop, use set device or set viewport to emulate mobile viewports and user agents.