Take a screenshot of a page
screenshot_urlRender one page in a browser and return a picture of it (JPEG, the visible window), with its title and what it cost. Use it to see a page as a person would: its layout, a chart, a banner, what a page looks like after browser steps. For the page's text use scrape_urls; its formats="markdown,screenshot" gives a link to the picture instead of the picture. Inputs: url, one absolute http(s) URL. viewport 'mobile' renders as a phone. actions are browser steps run first, as in scrape_urls' config, e.g. [{"type": "click", "selector": "#accept"}] or [{"type": "scroll", "times": 3}]. wait_ms waits that long after the steps. Cost: 4 credits for the browser, +1 for the picture; credits in the answer is what this call cost. A render that gives no picture is never charged for the picture, and credits says what it did cost. A page the site refuses is reported as blocked and is free. Errors: no picture comes back with code 'no_screenshot', the reason the browser gave and credits. Needs write access; a read-only connection is refused with code 'read_only'.
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_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute http(s) URL to picture. | |
| actions | No | Browser steps run before the picture, as config.actions takes them; omit for none. | |
| wait_ms | No | Milliseconds to wait after the steps, 0 to 10,000 (default 0). | |
| viewport | No | 'desktop' (default) or 'mobile', a phone's window and identity. | desktop |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The extraction's id; get_job(kind='extract', id=...) reads the page. | |
| url | No | The page pictured. | |
| code | No | Only on a failure: no_screenshot (the browser gave no picture; error says why), or the API's code. | |
| bytes | No | The picture's size in bytes. | |
| error | No | Only when the call failed: what went wrong, in words an assistant can act on. | |
| title | No | The page's title. | |
| detail | No | Only on a failure: the API's own wording, when the error was rephrased. | |
| status | No | Only on a failure: the HTTP status code. | |
| credits | No | What this call cost, as the API reported it; with no picture, what the render cost without one. | |
| pageStatus | No | ok, thin, blocked or error: how the page read. | |
| request_id | No | Only on a failure: the API's request id, null when none was sent. |