Browser Infrastructure Browser
Infrastructure & Scale/Advanced

Chrome DevTools Protocol (CDP)

Interacting directly with Chrome's native debugging port for advanced monitoring and low-level control.

Dependency Path
Requires:
Used By:
Environment Target
Compatibility: Chrome >= 110, nodriver >= 1.0
Last Reviewed: 2026-07-18
Recipes: 14 (9 cookbook / 5 playbook)

Why It Matters

Interacting directly with Chrome's native debugging port for advanced monitoring and low-level control.Also known as: devtools, cdp commands, websocket connection.

cdpchrome-devtoolslow-level

The Chrome DevTools Protocol allows direct instrument control, inspection, and manipulation of Chromium-based browsers. Connecting over WebSocket bypasses standard API detection limits.

Essential Operations

  1. Target Attachment: Attach to specific pages, frames, or service workers via unique CDP targets.
  2. Method Execution: Send JSON payload commands (Runtime.evaluate, Page.addScriptToEvaluateOnNewDocument).
  3. Event Subscriptions: Listen to network logs (Network.requestWillBeSent) or console outputs.

Example Recipes

+8 more recipes in the knowledge base

Book Coverage

Python Browser Automation Cookbook
9 recipes covering this concept
Browser Automation Playbook
5 recipes covering this concept

Next Steps

Related Concepts