agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction.

Updated Sep 1, 2021
One-click install
npx skills add https://github.com/WP-Coaching/pellegrims.coach --skill agent-browser-wp-coaching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-browser
Source: https://github.com/WP-Coaching/pellegrims.coach/tree/main/.agents/skills/agent-browser
Command: npx skills add https://github.com/WP-Coaching/pellegrims.coach --skill agent-browser-wp-coaching

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually navigating websites, filling forms, and extracting page data is repetitive and error-prone, and traditional browser automation floods AI context with full DOM output. This Skill drives a real browser through the agent-browser CLI using compact element refs, cutting token usage per interaction while handling navigation, input, capture, and session state. ## Core Features & Use Cases - Ref-Based Interaction: Snapshot pages to get compact @refs, then click, fill, select, drag, and upload against those refs instead of brittle CSS selectors. - Capture & Extraction: Take full-page screenshots, save pages as PDF, record session videos, and extract text, HTML, attributes, and computed styles. - Sessions & Authentication: Run isolated parallel sessions, save and restore login state, handle OAuth and 2FA flows, and route traffic through proxies. - Use Case: Log into a web app once, save the auth state to a file, then reuse it across runs to scrape dashboard data and capture screenshots without repeating the login flow. ## Quick Start Ask the agent to open a website with agent-browser, take an interactive snapshot, fill in the login form, and save 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 form filling in a browser from the command line?

Open the page with agent-browser open, run agent-browser snapshot -i to get element refs, then use agent-browser fill with each ref and click the submit button. Wait for navigation with agent-browser wait --load networkidle before verifying the result.

How do I extract data from a web page using agent-browser?

Navigate to the page, then use agent-browser get text, get html, or get attr on a ref or selector to pull content. Add --json for machine-readable output, or save the full page as a screenshot or PDF.

Can agent-browser reuse login sessions across runs?

Yes. After logging in, run agent-browser state save to write cookies and storage to a JSON file, then restore it later with agent-browser state load. This skips the login flow for subsequent automation runs.

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

Refs are invalidated whenever the page changes, such as after navigation or dynamic DOM updates. Re-run agent-browser snapshot -i to obtain fresh refs before interacting again.

Does agent-browser support proxies and parallel sessions?

Yes. Pass --proxy with HTTP or SOCKS5 URLs for geo-testing or rotation, and use --session <name> to run isolated browser contexts concurrently with separate cookies and storage.