Screenshot a web page
capture_sandbox_webshotTake a screenshot of a public web page. Webshot loads the URL in an isolated headless Chrome (desktop, tablet or mobile profile) and returns a preview image of the top of the page, a public link to the full-resolution capture, and metadata: format, file size, credits used and how long the link lasts. Use it to see how a page looks, to check a suspicious or unknown link without opening it, to capture visual evidence, or to compare layouts across devices. To read a page's text, a fetch tool is cheaper. Output is JPG (default), PNG, WebP or PDF. Most captures finish in 2 to 15 seconds; heavy pages take up to 60. Free use allows 5 credits per 15 minutes per IP: a viewport capture costs 1 credit and a full-page capture 2. The target site sees a visit from Webshot's server. Private, loopback and cloud-metadata addresses are refused, and pages that need a login are captured as a signed-out visitor sees them.
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_sandbox_webshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http or https URL to capture, for example https://example.com/pricing. A bare domain such as example.com is fetched over https. | |
| theme | No | Color scheme the page is asked to use (prefers-color-scheme). system keeps the page default, which is light for most sites. | system |
| format | No | File type of the full capture behind image_url. Credits are the same for every format. The inline preview is always a JPEG. | jpg |
| viewport | No | Device profile. desktop: 1920x1080. tablet: 834x1194 at 2x (iPad Pro 11). mobile: 390x844 at 3x (iPhone 15 Pro), with the matching mobile user agent. | desktop |
| full_page | No | true captures the whole scrollable page (2 credits, capped at 16,384 px tall); false captures the first screen only (1 credit). | |
| include_preview | No | Include a JPEG preview of the top of the page (longest side 1280 px) in the result. Set false to get only the link and metadata. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true when the capture succeeded. | |
| docs | No | ||
| mode | Yes | Capture mode used, e.g. desktop_viewport or mobile_full. | |
| bytes | Yes | Size of the full capture in bytes. | |
| theme | No | ||
| format | Yes | ||
| credits | Yes | Credits this capture used: 1 for a viewport, 2 for a full page. | |
| image_url | Yes | Public link to the full capture. No key or session needed. | |
| retention | No | How long image_url stays available. | |
| source_host | No | Host name of the captured URL. |