capture_page_screenshot
Capture a viewport, full-page, or clipped screenshot of a page or tab via CDP, with optional quality and save-to-disk. Returns the image and metadata for immediate use.
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.
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 |