charlotte_screenshot
Capture a visual screenshot of a webpage or element when structured representation isn't sufficient, with optional file artifact saving.
Instructions
Capture a visual screenshot. Fallback for when structured representation isn't sufficient (complex visualizations, canvas elements, images). Use save: true to persist as a file artifact that can be referenced later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Save as a persistent file artifact (default: false). When true, the screenshot is written to disk and artifact metadata is returned alongside the image. | |
| format | No | "png" (default), "jpeg", "webp" | |
| quality | No | 1-100 for jpeg/webp quality | |
| selector | No | CSS selector to capture specific element (default: full page) | |
| full_page | No | Capture the entire scrollable page (default: true). Set false to capture only the current viewport — much smaller output for long pages. Ignored when 'selector' is provided. | |
| output_file | No | Write screenshot to this file path instead of returning base64 inline. Relative paths resolve against output_dir (see charlotte_configure). Returns only a confirmation with the file path and size. |