Webshot

v1.1.0
site.webshot/webshot Checked 21 hours ago Published 21 hours ago

Screenshot any public web page as JPG, PNG, WebP or PDF with real headless Chrome.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

capture_sandbox_webshot Screenshot a web page

Take 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 page…

ParameterTypeDescription
url *stringPublic http or https URL to capture, for example https://example.com/pricing. A bare domain such as example.com is fetched over https.
formatstringFile type of the full capture behind image_url. Credits are the same for every format. The inline preview is always a JPEG.
full_pagebooleantrue captures the whole scrollable page (2 credits, capped at 16,384 px tall); false captures the first screen only (1 credit).
include_previewbooleanInclude 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.
themestringColor scheme the page is asked to use (prefers-color-scheme). system keeps the page default, which is light for most sites.
viewportstringDevice profile. desktop: 1920x1080. tablet: 834x1194 at 2x (iPad Pro 11). mobile: 390x844 at 3x (iPhone 15 Pro), with the matching mobile user agent.

get_webshot_usage Check remaining screenshot credits

Report how many Webshot credits the caller has left and when more become available. Without a key this is the shared per-IP allowance (5 credits per 15 minutes, refilling one credit at a time); with an Authorization: Bearer key it is that plan's monthly quota and per-minute limit. Call it before a batch of captures, or after a rate-limit error to learn how long to wait. It takes no arguments, costs nothing and changes nothing.