Capture Website Screenshot or HTML Image
website_screenshotCapture a PNG, JPEG, or WEBP screenshot of any public HTTP/HTTPS webpage URL or render raw HTML markup into a social/OG image at a configurable viewport. Provide either url or html. Returns JSON containing content_type, size_bytes, and base64 image data. Cost: 1 credit.
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": "website_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http:// or https:// URL to capture (provide this or html). | |
| html | No | Raw HTML markup to render and capture as an image (provide this or url). | |
| width | No | Viewport width in pixels (320 to 2560). | |
| format | No | Output image encoding format (png, jpeg, or webp). | png |
| height | No | Viewport height in pixels (200 to 2560). | |
| full_page | No | When true, capture the entire scrollable page height. |