screenshot
Capture browser screenshots as viewable images or save PNG files, with full-page tiling for tall pages.
Instructions
Capture a screenshot. With no path it returns a viewable image (not base64 text); with a path it saves the PNG and returns the path. With tiles=true it slices a full-page capture into fixed-height tiles written to DISK (returns their paths + count, never base64) — for layout-heavy pages a vision-capable caller then reads tile-by-tile. Prefer reading the page text/selectors first — only screenshot when you actually need the pixels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Output file path. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| tiles | No | Slice a full-page capture into fixed-height PNG tiles written to disk (0600); returns {tiles:[paths], count}. Implies full_page. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. | |
| tile_dir | No | Directory for tile files (default: alongside path, else the screenshots cache). | |
| full_page | No | Full page (not just viewport). | |
| max_tiles | No | Cap the number of tiles (top of page first). Bounds output/disk, not decode memory. If omitted, defaults to VIBATCHIUM_MAX_TILES (60); when a tall page is capped the result carries truncated=true + total_tiles. | |
| tile_height | No | Tile height in px when tiles=true. | |
| max_screenshot_px | No | Cap the CAPTURED height (px) of a full-page/tiles shot — bounds the decode itself (the real memory driver on tall/infinite-scroll pages), not just tile count. Default VIBATCHIUM_MAX_SCREENSHOT_PX (30000); 0 disables. A taller page is captured to the top N px and the result carries height_truncated=true + captured_height_px + total_height_px. |