charlotte_screenshot
Capture a screenshot of a web page or specific element. Use as fallback for complex visualizations, canvas elements, or images when structured data is insufficient.
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 |
|---|---|---|---|
| selector | No | CSS selector to capture specific element (default: full page) | |
| format | No | "png" (default), "jpeg", "webp" | |
| quality | No | 1-100 for jpeg/webp quality | |
| 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. | |
| 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. |