Real-browser automation via the `agent-browser` CLI. Use when a task needs an actual browser — navigating pages, filling forms, clicking, taking screenshots (including rendering a local HTML file to PNG), scraping or extracting page data — or for exploratory testing, QA, and dogfooding of web apps. Pulls version-matched workflow instructions from the CLI itself.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agent Browser?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bendrucker-agent-browser)
---
name: agent-browser
description: Real-browser automation via the `agent-browser` CLI. Use when a task needs an actual browser — navigating pages, filling forms, clicking, taking screenshots (including rendering a local HTML file to PNG), scraping or extracting page data — or for exploratory testing, QA, and dogfooding of web apps. Pulls version-matched workflow instructions from the CLI itself.
allowed-tools:
- Bash(agent-browser:*)
- Bash(npx agent-browser:*)
---
# agent-browser
Native browser-automation CLI (Chrome via CDP, accessibility-tree snapshots, compact `@eN` element refs).
This stub holds no usage details on purpose — load the version-matched workflow from the CLI before running any `agent-browser` command:
```bash
agent-browser skills get core # start here: workflows, patterns, troubleshooting
agent-browser skills get core --full # full command reference + templates
agent-browser skills get dogfood # exploratory testing / QA / bug hunts
agent-browser skills list # everything on the installed version
```
## Sessions
Each `--session` runs its own Chrome until it is closed or its idle timeout passes.
- Use one session per agent, named for the agent rather than the item, and reuse it across items by navigating it.
- Run each `agent-browser` call as its own bare command, never chained or piped. Chrome can't launch sandboxed, and a sandboxed call relaunches the session's Chrome and drops the open page.
- Run `agent-browser --session <name> close` once your last item is done.
- A brief for browser-driving subagents names one session per subagent, and at most two such subagents run at a time.
## Render a page to PNG
To screenshot a local HTML file, such as a graphic for Slack, use these calls instead of running Chrome directly, which fails under the sandbox:
```bash
agent-browser --session <name> open file:///abs/path/page.html
agent-browser --session <name> set viewport 1600 900 2
agent-browser --session <name> screenshot /abs/path/out.png
```
The third `viewport` argument is the device scale factor.
Slack automation exists via `agent-browser skills get slack`, but prefer the Slack MCP tools for reads/sends/searches.