Take a screenshot
take_screenshotCapture a screenshot of a web page (or of raw HTML) and return the image. Cookie banners are removed by default. Each successful capture uses one credit of the ScreenAPI plan.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public web page to capture (http or https). Send either url or html. | |
| html | No | Raw HTML to render instead of a URL. | |
| delay | No | Wait this many milliseconds before capturing. | |
| width | No | Viewport width in pixels (ignored when device is set). | |
| device | No | Device preset, e.g. iphone-15-pro, ipad-air, desktop-1920. Call list_devices for all values. | |
| format | No | Output format. PDF is returned as a file. | webp |
| height | No | Viewport height in pixels. | |
| selector | No | CSS selector: capture only this element. | |
| block_ads | No | ||
| dark_mode | No | ||
| full_page | No | Capture the whole scrollable page instead of the first screen. | |
| block_chats | No | Hide chat widgets and popups. | |
| hide_elements | No | Comma-separated CSS selectors to hide. |