Capture a screenshot of a web page
capture_screenshotLoad a public web page in a headless browser and save it as a JPEG, PNG, WebP, or PDF to check how it renders or keep a visual record. Returns a link and the image itself when small.
Instructions
Loads a public web page in a headless browser and captures it as a JPEG, PNG or WebP image, or as a PDF. Returns a link to the file, and the image itself when it is small enough to look at directly. Suited to checking how a page renders or keeping a visual record of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL of the page to capture. | |
| delay | No | Seconds to wait after the page has loaded before capturing, 0 to 15. Default 5. | |
| scale | No | PDF only. Render scale. | |
| width | No | Viewport width in pixels, 200 to 3840. Values outside the range are clamped. Default 1280. | |
| format | No | Output type. `jpeg` (default), `png`, `webp`, or `pdf` for a paged document. | jpeg |
| height | No | Viewport height in pixels, 150 to 4320. Values outside the range are clamped. Default 1024. | |
| quality | No | JPEG quality from 1 to 100. Sent as 80 when omitted, which keeps most captures small enough to be returned inline. Ignored for other formats. | |
| marginTop | No | PDF only. Top margin in inches, 0 to 5. Default 0.4. | |
| marginLeft | No | PDF only. Left margin in inches, 0 to 5. Default 0.4. | |
| paperWidth | No | PDF only. Paper width in inches. | |
| marginRight | No | PDF only. Right margin in inches, 0 to 5. Default 0.4. | |
| orientation | No | PDF only. | portrait |
| paperHeight | No | PDF only. Paper height in inches. | |
| marginBottom | No | PDF only. Bottom margin in inches, 0 to 5. Default 0.4. |