Skip to content
Agentmart
Submit a tool

ag-agent-browser

AI-optimized browser automation CLI with context-efficient snapshots.

Skill by ngxccc

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ngxccc-ag-agent-browser

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

AI-optimized browser automation CLI with context-efficient snapshots. Use for long autonomous sessions, self-verifying workflows, video recording, and cloud browser testing (Browserbase).

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ag-agent-browser

What's inside

Skill name
ag-agent-browser
Description
AI-optimized browser automation CLI with context-efficient snapshots. Use for long autonomous sessions, self-verifying workflows, video recording, and cloud browser testing (Browserbase).
License
MIT
Instructions
317 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (35)

  • SKILL.md
  • agent-browser-vs-chrome-devtools.md · references/
  • browserbase-cloud-setup.md · references/
  • cdp-domains.md · references/
  • performance-guide.md · references/
  • puppeteer-reference.md · references/
  • .gitignore · scripts/
  • README.md · scripts/
  • error-handling.test.js · scripts/__tests__/
  • selector.test.js · scripts/__tests__/
  • aria-snapshot.js · scripts/
  • attach-listener.js · scripts/
  • click.js · scripts/
  • connect-chrome.js · scripts/
  • console.js · scripts/
  • evaluate.js · scripts/
  • fill.js · scripts/
  • import-cookies.js · scripts/
  • inject-auth.js · scripts/
  • inspect-chat-page.js · scripts/
  • install-deps.sh · scripts/
  • install.sh · scripts/
  • browser.js · scripts/lib/
  • selector.js · scripts/lib/
  • navigate.js · scripts/
  • network.js · scripts/
  • package-lock.json · scripts/
  • package.json · scripts/
  • performance.js · scripts/
  • reload-and-listen.js · scripts/
  • screenshot.js · scripts/
  • select-ref.js · scripts/
  • snapshot.js · scripts/
  • ws-debug.js · scripts/
  • ws-full-debug.js · scripts/

SKILL.md (first lines)

# agent-browser Skill

Browser automation CLI designed for AI agents. Uses "snapshot + refs" paradigm for 93% less context than Playwright MCP.

## How to Use

### Quick Start

```bash
# Install globally
npm install -g agent-browser

# Download Chromium (one-time)
agent-browser install

# Linux: include system deps
agent-browser install --with-deps

# Verify
agent-browser --version
```

## Core Workflow

The 4-step pattern for all browser automation:

```bash
# 1. Navigate
agent-browser open https://example.com

# 2. Snapshot (get interactive elements with refs)
agent-browser snapshot -i
# Output: button "Sign In" @e1, textbox "Email" @e2, ...

# 3. Interact using refs
agent-browser fill @e2 "user@example.com"
agent-browser click @e1

# 4. Re-snapshot after page changes
agent-browser snapshot -i
```

## Project-Specific Setup

For project-specific connection patterns, logged-in session reuse through `chrome-debug`, and when to use `agent-browser` vs `chrome-devtools` vs direct non-browser verification, see the project's browser-automation testing notes in the consuming repo, if present. This skill file stays a generic tool reference only and should not redefine the project's broader testing policy.

---

## When to Apply

| Use agent-browser             | Use chrome-devtools             |
| ----------------------------- | ------------------------------- |
| Long autonomous AI sessions   | Quick one-off screenshots       |
| Context-constrained workflows | Custom Puppeteer scripts needed |
| Video recording for debugging | WebSocket full frame debugging  |
| Cloud browsers (Browserbase)  | Existing workflow integration   |
| Multi-tab handling            | Need Sharp auto-compression     |
| Self-verifying build loops    | Session with auth injection     |

**Token efficiency:** ~280 chars/snapshot vs 8K+ for Playwright MCP.

## Command Reference

### Navigation

```bash
agent-browser open <url>       # Navigate to URL
agent-browser back             # Go back
agent-browser forward          # Go forward
agent-browser reload           # Reload page
agent-browser close            # Close browser
```

### Analysis (Snapshot)

```bash
agent-browser snapshot         # Full accessibility tree
agent-browser snapshot -i      # Interactive elements only (recommended)
agent-browser snapshot -c      # Compact output
agent-browser snapshot -d 3    # Limit depth
agent-browser snapshot -s "nav" # Scope to CSS selector
```

### Interactions (use @refs from snapshot)

```bash
agent-browser click @e1        # Click element
agent-browser dblclick @e1     # Double-click
agent-browser fill @e2 "text"  # Clear and fill input
agent-browser type @e2 "text"  # Type without clearing
agent-browser press Enter      # Press key
agent-browser hover @e1        # Hover over element
agent-browser check @e3        # Check checkbox
agent-browser uncheck @e3      # Uncheck checkbox
agent-browser select @e4 "opt" # Select dropdown option
agent-browser scroll @e1       # Scroll element into view
agent-browser scroll down 500  # Scroll page by pixels
agent-browser drag @e1 @e2     # Drag from e1 to e2
agent-browser upload @e5 file.pdf  # Upload file
```

### Information Retrieval

```bash
agent-browser get text @e1     # Get text content
agent-browser get html @e1     # Get HTML
agent-browser get value @e2    # Get input value
agent-browser get attr @e1 href  # Get attribute
agent-browser get title        # Page title
agent-browser get url          # Current URL
agent-browser get count "li"   # Count elements
agent-browser get box @e1      # Bounding box
```

### State Checks

```bash
agent-browser is visible @e1   # Check visibility
agent-browser is enabled @e1   # Check if enabled

From ngxccc/agent-skills-kit, MIT.

More from ngxccc/agent-skills-kit

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 2, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ngxccc

Cite this page

ag-agent-browser skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-agent-browser (last updated 2026-10-24)