CDP: Screenshot
cdp_screenshotCapture the attached browser page as a screenshot via CDP, saving it to a file or returning base64; optionally capture the full scrollable page or select a tab by index or URL.
Instructions
Screenshot the attached page (to a file, or base64 with as_base64=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Output filename. | |
| tab | No | Tab index from cdp_tabs to act on. | |
| url | No | Pick the tab whose URL contains this substring. | |
| port | No | CDP debug port (default 9222). | |
| as_base64 | No | Return base64 image data instead of writing a file | |
| full_page | No | Capture the whole scrollable page instead of just the viewport |