session_screenshot
Capture the live DOM state of a browser session as a base64 PNG, including click and eval mutations. Supports viewport, element-specific, or full-page screenshots.
Instructions
Screenshot the session's CURRENT DOM state (mutations from clicks/evals included) as a base64 PNG via the built-in renderer. Width/height default to the session's viewport, so session_viewport + session_screenshot shows the responsive layout. Returns {url, width, height, image_base64, format}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Render width in CSS pixels; defaults to the session's current viewport | |
| height | No | Render height in CSS pixels; defaults to the session's current viewport | |
| selector | No | CSS selector: capture only that element's box | |
| full_page | No | Capture the full scrollable page instead of the viewport (default: false) | |
| session_id | Yes | Session ID | |
| selector_all | No | With selector, capture every match (default: first match only) |