cdp_screenshot
Capture screenshots of web pages or specific elements using Chrome DevTools Protocol for browser automation and testing purposes.
Instructions
Capture a screenshot of the page or a specific element.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cdp_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | Element to capture (full page if omitted) | |
| format | No | Image format (default: png) | |
| quality | No | JPEG/WebP quality 0-100 | |
| full_page | No | Capture full scrollable page | |
| path | No | Save to file path |