Screenshot
screenshotCapture web page images and return as base64-encoded data from browser sessions. Save to disk or return inline with support for full-page capture and targeted CSS element selection.
Instructions
Capture a screenshot of the current page. Returns the image inline as base64. Optionally save to disk with savePath.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| fullPage | No | Capture full scrollable page. | |
| selector | No | CSS selector to capture a specific element. | |
| savePath | No | Optional file path to save the screenshot to disk. If omitted, image is returned inline only. |