askill
agent-browser

agent-browserSafety 95Repository

Fast headless browser CLI for AI agents. Supports deterministic element selection via accessibility tree snapshots and refs (@e1, @e2).

12 stars
1.2k downloads
Updated 2/26/2026

Package Files

Loading files...
SKILL.md

agent-browser - Headless Browser for AI Agents

When to use this skill

  • Web automation and E2E testing
  • Scraping data from modern web apps
  • Deterministic element interaction using accessibility tree refs
  • Isolated browser sessions for different agent tasks

1. Installation

npx skills add vercel-labs/agent-browser
# or
npm install -g agent-browser
agent-browser install

2. Core Workflow (Deterministic Interaction)

AI agents should use the snapshot + ref workflow for best results:

  1. Navigate: agent-browser open <url>
  2. Snapshot: agent-browser snapshot -i (Returns tree with refs like @e1, @e2)
  3. Interact: agent-browser click @e1 or agent-browser fill @e2 "text"
  4. Repeat: Snapshot again if page changes

3. Key Commands

CommandDescription
open <url>Navigate to a URL
snapshotGet accessibility tree with refs
click <sel>Click element (by ref or CSS)
fill <sel> <text>Clear and fill input
screenshot [path]Take page screenshot
closeQuit browser session

4. Advanced Features

  • Isolated Sessions: Use --session <name> to isolate cookies/storage.
  • Persistent Profiles: Use --profile <path> to persist login sessions.
  • Semantic Locators: find role button click --name "Submit"
  • JavaScript Execution: eval "window.scrollTo(0, 100)"

Quick Reference

# Optimal AI Workflow
agent-browser open example.com
agent-browser snapshot -i --json
# (AI parses refs)
agent-browser click @e2

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

87/100Analyzed 2/20/2026

Well-structured skill for a headless browser CLI with clear installation, workflow, and command reference. Includes "when to use" section, structured steps, tags, and metadata. Highly reusable as it targets a general-purpose tool (agent-browser) not tied to any internal repo. Slight扣分 for not having more real-world examples.

95
90
90
85
90

Metadata

Licenseunknown
Version1.0.0
Updated2/26/2026
Publishersupercent-io

Tags

github-actions