screenshot
Capture a screenshot of a web page or a specific element using CSS selectors. Save the image in PNG, JPEG, or WebP format with optional full-page capture.
Instructions
Capture a screenshot of the current page or a specific element
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Filename for the saved image (e.g. "shot.png"). Only used when save is true. Defaults to a timestamped name if omitted. | |
| format | No | Image format. JPEG/WebP produce smaller files but no transparency. Default: png. | |
| full_page | No | Capture the full scrollable page, not just the visible viewport. Ignored when selector is provided. | |
| output_dir | No | Directory to save the screenshot in. Overrides the default output directory. | |
| quality | No | Image quality 0-100. Only applies when format is jpeg or webp. Default: 80. | |
| save | No | If true, save the screenshot to the output directory and return the saved path instead of base64. | |
| selector | No | CSS selector to screenshot a specific element. If omitted, captures the full viewport. |