browse CLI initial release
Introduced 2026-03-18 · score 0.93
HOW TO USE IT
When implementing or debugging repository code requires browser interaction, install and use the `browse` CLI to navigate, inspect, act, and verify page state. The official workflow documents snapshot refs and browser commands for these steps.
browse open <url>
browse snapshot -c
browse click <ref>
browse type "<text>"
browse screenshot ./page.png
browse stopbrowse open <url>
browse snapshot -c
browse fill <selector-or-ref> "<value>"
browse click <ref>
browse snapshot -c
browse stopWHY THIS HELPS
Automate browser interactions while implementing or debugging repository code.
REQUIREMENTS AND LIMITATIONS
- Version: 0.2.0
- open <url> (required): Navigate to a URL; first command auto-starts the browser daemon.
- snapshot -c / --compact: Print the accessibility tree with element refs in compact form.
- click <ref> (required): Click an element by its snapshot ref, such as `@0-5`.
- type <text> (required): Type text; optional `-d` delay and `--mistakes` flags are documented.
- fill <selector> <value> (required): Fill a form field; optional `--no-press-enter` disables pressing Enter.
- screenshot [path]: Capture a screenshot; optional `-f|--full-page` and `-t png|jpeg`.
- stop (required): Stop the browser daemon.
- Prerequisite: Install with `npm install -g @browserbasehq/browse-cli`. Chrome/Chromium must be installed on the system.
FIRST-PARTY EVIDENCE
- https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md#020
- https://github.com/browserbase/stagehand/blob/e38c13b7526b140b693152ef1ffda88a74e9c425/packages/cli/README.md
Check the installed version and the source before using it. Entry JSON