screenshot
Capture screenshots of the current viewport, specific elements, or full page. Use as a last resort after text-based tools have failed.
Instructions
Capture a screenshot of the current page viewport, a specific element, or the full scrollable page. Returns base64-encoded image data by default, or saves to disk when save=true. Use as a LAST RESORT only after text-based tools (page_map, read_content, execute_js) have failed to provide the needed information — screenshots are expensive and cannot be searched or parsed programmatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | If true, save the screenshot to the output directory and return the file path instead of base64 data. Default: false. | |
| format | No | Image format. 'png' (default) supports transparency; 'jpeg'/'webp' produce smaller files for photos. Default: png. | |
| quality | No | Compression quality 0–100 for jpeg/webp formats only (ignored for png). Lower values = smaller files. Default: 80. | |
| filename | No | Custom filename for the saved image (e.g. "homepage.png"). Only used when save=true. Defaults to a timestamped name if omitted. | |
| selector | No | CSS selector to screenshot a specific element (e.g. "#chart", ".product-image"). If omitted, captures the full viewport. | |
| full_page | No | If true, capture the full scrollable page height (not just the visible viewport). Ignored when selector is provided. Default: false. | |
| output_dir | No | Directory to save the screenshot in (absolute or relative to CWD). Only used when save=true. Overrides the default output directory. |