name: capture description: Browser automation and UI validation via the capture CLI. Interact with pages using accessibility-driven click, type, screenshot, a11y tree, JS exec, and HAR recording over CDP. Use when validating UI state, testing features in the browser, or manipulating a running web app. allowed-tools: Bash(capture:*), Read, Glob, Grep
Capture — Browser Automation Skill
Use the capture CLI to observe, interact with, and validate browser state via CDP.
CLI Quick Reference
capture session start [--url <url>] Start session (opens tab, sets context)
capture session stop <session-id> Finalize and bundle artifacts
capture session view <id> View bundle manifest
capture detect Detect CDP port
capture list List browser tabs
capture open <url> [--new] Open URL in browser
capture navigate <url> [--settle <ms>] Navigate + record HAR
capture screenshot [--out <path>] Capture screenshot
capture a11y [--interactive] [--json] Get accessibility tree
capture click "name" [--role role] Click element by accessible name
capture type "text" [--into "field"] Type into focused element or named field
capture exec <code> Execute JS in browser tab
capture exec --file <path> Execute JS from file
capture record [--duration <secs>] Passive HAR recording
capture log <path> [--name label] Tail a log file into the session
capture network <offline|online> Toggle network (simulate disconnect)
capture har create|read|delete Manage HAR recordings
Session Workflow
-
capture session start --url <url>— opens tab, starts HAR, sets active session - Interact:
screenshot,click,type,a11y,exec,navigate -
capture session stop <id>— bundles screenshots + HAR + a11y snapshots -
capture session view <id>— inspect the bundle
Session context auto-fills --target and --har after session start. No manual flag threading.
Key Behaviors
-
Targeting:
--target <id>(preferred, parallel-safe) or--url <pattern>(fuzzy match) -
Auto-screenshots:
clickandtypesave numbered screenshots to the session automatically. Use--no-screenshotto skip. -
HAR recording: Use
--har <id>withexecornavigateto append network traffic. Or--recordwithexecfor standalone HAR. -
exec supports await:
capture exec 'await fetch("/api/data").then(r => r.json())' -
Any command supports
--help
Validation Pattern
When validating a UI feature:
- Start a session targeting the page under test
- Use
a11y --interactiveto understand what's on the page - Interact via
clickandtypeusing accessible names (not selectors) - Take screenshots at key states
- Use
execto check DOM or JS state when a11y isn't sufficient - Use
har readto verify network requests if relevant - Stop the session and report pass/fail with evidence
Interaction Tips
- Always prefer
click "Name"overexecwith selectors — a11y names are stable - If
clickreports multiple matches, add--roleto disambiguate - Run
a11y --interactivebefore interacting to see available elements -
type --into "Field Name"clicks the field first, then types — no separate click needed - After interactions, screenshot to capture the resulting state
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
24
GitHub Forks
3
Created
Mar 2026
Last Updated
7 months ago
tools
tools cli tools
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!