browse cdp attaches to a CDP target and streams events
Introduced 2026-04-27 · score 0.93
HOW TO USE IT
When debugging a repository’s browser workflow, run `browse cdp <url|port>` to attach to a CDP target and stream DevTools protocol events as NDJSON; use `--domain` to filter events or `--pretty` for human-readable output. [Browse CLI 0.6.0 changelog](https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md)
browse cdp <url|port>browse cdp <port> --domain <domain> --prettybrowse cdp <port> | jq '.method'WHY THIS HELPS
Inspect DevTools protocol events from a CDP target while debugging a repository's browser workflow.
REQUIREMENTS AND LIMITATIONS
- Version: @browserbasehq/browse-cli@0.6.0
- <url|port> (required): CDP target WebSocket URL or port to attach to.
- --domain <domains...>: Select CDP domains to enable; repeatable. The current reference lists Network, Console, Runtime, Log, and Page as defaults.
- --pretty: Use human-readable output instead of JSON; current reference says it is auto-enabled for a TTY.
- Docs conflict: The only detailed command reference found is on the current skills main branch, which may describe behavior newer than version 0.6.0; it does not establish that defaults or TTY behavior apply to 0.6.0.
FIRST-PARTY EVIDENCE
- https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md#060
- https://github.com/browserbase/stagehand/blob/@browserbasehq/browse-cli@0.6.0/packages/cli/CHANGELOG.md
- https://github.com/browserbase/skills/blob/main/skills/browser/REFERENCE.md
Check the installed version and the source before using it. Entry JSON