Attach Raw CDP
browser_cdp_attachAttach a Chrome DevTools Protocol session to a tab to run commands and capture events; detach to release the tab.
Instructions
Attach an unrestricted Chrome DevTools Protocol session to one tab. Set captureEvents=false when only commands plus a sanitized network projection are needed; captured Raw events may expose credentials and private data. The session holds the tab under an idle lease that any valid call renews; always detach. If the tab is busy, the error names the holder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| browser | No | Which connected Chrome to use: an instanceId or label from browser_list_instances. Required when more than one browser is connected; session-based tools infer it from their sessionId. | |
| maxBytes | No | ||
| maxEvents | No | ||
| leaseTtlMs | No | Idle period after which another task may take over the attachment (default 300000). Any valid call renews it. | |
| ownerLabel | No | Diagnostic label shown to other tasks that find the tab busy; not an identity. | |
| captureEvents | No |