{
  "slug": "browse-cdp-attaches-to-a-cdp-target-and-streams-events-83b0009f7b44",
  "title": "browse cdp attaches to a CDP target and streams events",
  "tools": [
    "browse"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-27T22:18:56.744Z",
  "announced_at": "2026-04-27T22:18:56.744Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "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)",
    "examples": [
      "browse cdp <url|port>",
      "browse cdp <port> --domain <domain> --pretty",
      "browse cdp <port> | jq '.method'"
    ],
    "gotchas": [
      "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."
    ]
  },
  "why_it_matters": "Inspect DevTools protocol events from a CDP target while debugging a repository's browser workflow.",
  "sources": [
    "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"
  ],
  "rank": 0.93027,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "browsecli-20261017",
    "verdict_id": "browsecli-20261017:browsecli-20261017-3c4979b768b6c71b-1:gate",
    "evidence_hash": "c479979dfb87ba277fb2bdc21313c79b71cc02c576bb24a56469a528897fac4e"
  },
  "review": {
    "draft_hash": "aa474b5e1f397f06e9d8cf55dc830013aa9e374b096a7d1e44e82712135b6775",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "browsecli-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
