About browser-automation
A skill for carrying out browser tasks through a CDP-backed workflow, with explicit browser endpoints and checks after each action. It is aimed at agents that need repeatable navigation, interaction, and debugging steps.
Key features
- 01Inspect browser targets
- 02Navigate to pages
- 03Use snapshots to find action targets
- 04Click and fill by snapshot UID
- 05Verify changes with snapshots or evaluation
- 06Debug through CLI tools
Use cases
- 01Automating browser navigation and forms
- 02Checking page state after interactions
- 03Investigating CDP endpoint or snapshot issues
MCP support
It documents a workflow using browser tools exposed through OpenCode Browser, including listing, navigation, snapshots, clicks, fills, evaluation, and screenshots.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ different-ai/ opencode-browser --skill browser-automationAfter installing, type/browser-automationin Claude Code to confirm it loaded.
Details
From the project READMEWhat I do
- Provide a safe, composable workflow for CDP-backed browsing tasks
- Use explicit
browser_urlvalues; do not assume a hidden browser singleton - Use
browser_snapshotUIDs for click and fill actions - Confirm state changes after each action with
browser_snapshotorbrowser_eval
Best-practice workflow
- Inspect targets with
browser_list({ browser_url }) - Pick a
target_id, or omit it to use the first page target - Navigate with
browser_navigateif needed - Discover candidates using
browser_snapshot - Click or fill using a UID from the latest snapshot
- Confirm using
browser_snapshotorbrowser_eval
CLI-first debugging
- List all available tools:
npx @different-ai/opencode-browser tools - Run one tool directly:
npx @different-ai/opencode-browser tool browser_list --args '{"browser_url":"http://127.0.0.1:9222"}' - Set a default endpoint:
OPENCODE_BROWSER_URL=http://127.0.0.1:9222 npx @different-ai/opencode-browser status
This path is useful for reproducing CDP endpoint or snapshot issues quickly before running a full OpenCode session.
Available tools
browser_listbrowser_navigatebrowser_snapshotbrowser_clickbrowser_fillbrowser_evalbrowser_screenshot
Troubleshooting
- If
browser_listfails, verify the browser was started with--remote-debugging-port - If
browser_clickorbrowser_fillcannot find a UID, refresh the snapshot first - Use
browser_evalfor page-specific checks that are not visible in the accessibility tree - Confirm results after each action
Comments
Markdown supported