Browser Automation
This skill should be used when the user needs to interact with web pages, browse websites, take screenshots, fill forms, click elements, extract web content, or perform any browser automation tasks. Trigger phrases include "open webpage", "visit website", "browse", "screenshot page", "fill form", "click button", "extract from website", "web scraping", "automate browser".
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- Browser Automation
- version
- 1.0.0
- description
- This skill should be used when the user needs to interact with web pages, browse websites, take screenshots, fill forms, click elements, extract web content, or perform any browser automation tasks. Trigger phrases include "open webpage", "visit website", "browse", "screenshot page", "fill form", "click button", "extract from website", "web scraping", "automate browser".
03 SKILL.md 正文
Browser Automation with agent-browser
Use agent-browser CLI tool for all browser automation tasks. This is the preferred method for web interactions.
Important: Command Sequence
Always follow this sequence:
agent-browser launch- Start the browser firstagent-browser open <url>- Navigate to a URL- Perform operations (snapshot, click, type, etc.)
agent-browser close- Close when done
Quick Reference
First, run agent-browser without arguments to see full help:
agent-browser
Essential Commands
| Command | Description |
|---|---|
agent-browser launch |
Start browser (required before open) |
agent-browser open <url> |
Navigate to URL |
agent-browser snapshot |
Get page content as text |
agent-browser snapshot -i |
Get page content with element IDs for interaction |
agent-browser screenshot |
Take screenshot |
agent-browser click <selector> |
Click an element |
agent-browser type <selector> <text> |
Type text into input |
agent-browser close |
Close browser |
Common Workflows
View webpage content:
agent-browser launch
agent-browser open https://example.com
agent-browser snapshot
agent-browser close
Take screenshot:
agent-browser launch
agent-browser open https://example.com
agent-browser screenshot
agent-browser close
Fill form and submit:
agent-browser launch
agent-browser open https://example.com/login
agent-browser snapshot -i # Get element IDs
agent-browser type "#username" "myuser"
agent-browser type "#password" "mypass"
agent-browser click "#submit"
agent-browser close
Extract data from page:
agent-browser launch
agent-browser open https://example.com/data
agent-browser snapshot # Returns structured text content
agent-browser close
Tips
- Always launch first:
agent-browser openwill fail if browser isn't launched - Use snapshot -i for interactions: The
-iflag shows element IDs needed for click/type - Check help for more options: Run
agent-browser <command> --helpfor detailed options - Close when done: Always close the browser to free resources
When NOT to Use
- For simple HTTP requests without JavaScript rendering, use
curlorWebFetch - For API calls, use appropriate HTTP tools
- agent-browser is for full browser automation with JavaScript support
Troubleshooting
If agent-browser command not found:
npm install -g agent-browser
agent-browser install
If browser fails to launch on Linux:
agent-browser install --with-deps
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.