take_screenshot
Capture screenshots of web pages or specific elements with options for format, quality, full-page capture, or saving to file.
Instructions
Take a screenshot of the page or element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Type of format to save the screenshot as. Default is "png" | png |
| quality | No | Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format. | |
| uid | No | The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot. | |
| fullPage | No | If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid. | |
| filePath | No | The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response. |