Screenshot API
screenshotCapture a screenshot of any web page in PNG, JPG, or WEBP format. Adjust viewport size, image quality, and full-page options to get the image you need.
Instructions
Capture a screenshot (PNG/JPG/WEBP) of any web page. Returns the image.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to screenshot. | |
| width | No | Viewport width in pixels. | |
| format | No | Image format. (API default: png) | |
| height | No | Viewport height in pixels. | |
| quality | No | Image quality 0-100 (jpg/webp). (API default: 80) | |
| fullPage | No | Capture the full scrollable page instead of just the viewport. (API default: false) | |
| wait_until | No | Navigation completion trigger. (API default: domcontentloaded) |