Screenshot terminal
terminal_screenshotRender a screen-sized terminal view to PNG, letting you inspect live output or scrollback visually and save or inline the image.
Instructions
Render a screen-sized window of the terminal to a PNG. Height is always the current screen height (term.rows); use page to walk back through scrollback in screen-sized increments at the same dimensions as the live screen. If filePath is set, the PNG is written there and the path is returned. Large images (>2097152 bytes) are also spilled to a temp file automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 0 = current live screen. N = the screen-sized window N screens earlier. Past-top clamps. | |
| filePath | No | Absolute path to write the PNG to. If unset, image is inlined as base64. | |
| sessionId | Yes | Numeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids. |