browser

Pass

Headless browser automation using agent-browser CLI

@zeroclaw-labs
Apache-2.03/27/2026
48out of 100
(0)
28.9k
57
72

Install Skill

Skills are third-party code from public GitHub repositories. SkillHub scans for known malicious patterns but cannot guarantee safety. Review the source code before installing.

Install globally (user-level):

npx skillhub install zeroclaw-labs/zeroclaw/browser

Install in current project:

npx skillhub install zeroclaw-labs/zeroclaw/browser --project

Suggested path: ~/.claude/skills/browser/

AI Review

Instruction Quality48
Description Precision22
Usefulness60
Technical Soundness68

Scored 48 as a lean command reference. Clear code examples and cross-platform install notes, but lacks workflow depth — no error handling, no numbered steps, and description is too vague. TEST.sh is trivial (3 lines).

SKILL.md Content

---
name: browser
description: Headless browser automation using agent-browser CLI
metadata: {"zeroclaw":{"emoji":"🌐","requires":{"bins":["agent-browser"]}}}
---

# Browser Skill

Control a headless browser for web automation, scraping, and testing.

## Prerequisites

- `agent-browser` CLI installed globally (`npm install -g agent-browser`)
- Chrome downloaded (`agent-browser install`)

## Installation

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

# Download Chrome for Testing
agent-browser install --with-deps  # Linux
agent-browser install              # macOS/Windows
```

## Usage

### Navigate and snapshot

```bash
agent-browser open https://example.com
agent-browser snapshot -i
```

### Interact with elements

```bash
agent-browser click @e1           # Click by ref
agent-browser fill @e2 "text"     # Fill input
agent-browser press Enter         # Press key
```

### Extract data

```bash
agent-browser get text @e1        # Get text content
agent-browser get url             # Get current URL
agent-browser screenshot page.png # Take screenshot
```

### Session management

```bash
agent-browser close               # Close browser
```

## Common Workflows

### Login flow

```bash
agent-browser open https://site.com/login
agent-browser snapshot -i
agent-browser fill @email "[email protected]"
agent-browser fill @password "secretpass"
agent-browser click @submit
agent-browser wait --text "Welcome"
```

### Scrape page content

```bash
agent-browser open https://news.ycombinator.com
agent-browser snapshot -i
agent-browser get text @e1
```

### Take screenshots

```bash
agent-browser open https://google.com
agent-browser screenshot --full page.png
```

## Options

- `--json` - JSON output for parsing
- `--headed` - Show browser window (for debugging)
- `--session-name <name>` - Persist session cookies
- `--profile <path>` - Use persistent browser profile

## Configuration

The browser tool is enabled by default with `allowed_domains = ["*"]` and
`backend = "agent_browser"`. To customize, edit `~/.zeroclaw/config.toml`:

```toml
[browser]
enabled = true              # default: true
allowed_domains = ["*"]     # default: ["*"] (all public hosts)
backend = "agent_browser"   # default: "agent_browser"
native_headless = true      # default: true
```

To restrict domains or disable the browser tool:

```toml
[browser]
enabled = false                              # disable entirely
# or restrict to specific domains:
allowed_domains = ["example.com", "docs.example.com"]
```

## Full Command Reference

Run `agent-browser --help` for all available commands.

## Related

- [agent-browser GitHub](https://github.com/vercel-labs/agent-browser)
- [VNC Setup Guide](../docs/browser-setup.md)