Capture screenshot
capture_screenshotTakes a full-page screenshot of one URL, for example to see how a relaunched page or a mobile layout looks. Free 5 times, once per client address, no key needed. The PNG is taken at the given viewport width and returned inline when small, else as links.file to fetch with the jobToken. Call it for a one-off look at a page or a mobile-width check. Do not call it for pages a comparison job covers: the job already stored their screenshots. Example: { "url": "https://new.example/pricing", "viewportWidth": 375 }. Answers with jobId, jobToken, filename, url, dimensions, bytes, links.file and, on a free run, sample and allowanceRemaining.
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": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page to capture (full URL). | |
| auth | No | HTTP basic auth for the page. | |
| visual | No | Capture rules applied to both sides. | |
| viewportWidth | No | Capture width in px. | |
| idempotencyKey | No | Retry key: under a prepaid balance, the same value within 24 hours is not charged again and answers DUPLICATE_REQUEST with the first jobId. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| code | No | ||
| bytes | No | ||
| error | No | ||
| jobId | No | ||
| links | No | ||
| region | No | ||
| sample | No | ||
| payment | No | ||
| filename | No | ||
| jobToken | No | ||
| followUps | No | ||
| imageSize | No | ||
| dimensions | No | ||
| pagesCharged | No | ||
| allowanceRemaining | No |