session_screenshot
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 |
|---|---|---|---|
| dpr | No | Device pixel ratio (#185): rasterize at device resolution (Retina/HiDPI sharp) — the bitmap comes back width·dpr × height·dpr with CSS geometry intact. Clamped to 1.0..=3.0 (default: 1.0) | |
| 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) |