cdp_content
Retrieve page HTML or innerHTML of a CSS selector from a browser session. Large documents are automatically truncated to prevent overflow.
Instructions
Get page HTML, or innerHTML of a selector. Large documents are truncated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "cdp_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | ||
| max_chars | No | ||
| session_id | Yes | Session id returned by cdp_connect |