capture_page_screenshot
Take a viewport, full-page, or clipped screenshot of a webpage or tab, with format and quality controls, and receive the image plus metadata for visual verification or saving.
Instructions
Capture a viewport, full-page, or clipped screenshot of a page/tab via CDP with optional JPEG/WebP quality. Returns text metadata plus an attached MCP image even when save_path is set; save_path only controls disk output. image_width/image_height are DEVICE pixels (CSS x devicePixelRatio), not the CSS pixels page_click takes, and size is the byte count. If the current model cannot consume images, it has not seen the pixels and must use scan_page, execute_js, a page-specific API, or OCR instead. Base64 is included only when return_base64=true.
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": "capture_page_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | ||
| format | No | png | |
| tab_id | No | ||
| quality | No | ||
| timeout | No | ||
| full_page | No | ||
| save_path | No | ||
| session_id | No | ||
| return_base64 | No |