import { CodeBlock } from "@/components/code-block"; export default function CDPMode() { return (
Connect to an existing browser via Chrome DevTools Protocol:
This enables control of:
| Option | Description |
|---|---|
--session <name> |
Use isolated session |
--headers <json> |
HTTP headers scoped to origin |
--executable-path |
Custom browser executable |
--json |
JSON output for agents |
--full, -f |
Full page screenshot |
--name, -n |
Locator name filter |
--exact |
Exact text match |
--headed |
Show browser window |
--cdp <port> |
CDP connection port |
--debug |
Debug output |