url_to_screenshot
Capture a page as an image. Requires an API key purchased at https://url-pdf.hammbox.com/buy. If this MCP request carries a valid "x-api-key" or "Authorization: Bearer" header, it renders directly and returns a 1-hour download URL; otherwise it returns purchase guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to capture. Required. | |
| clip | No | Clip region as "x,y,width,height" — or an object {x,y,width,height}. Optional. | |
| width | No | Viewport width in px, 320-3840. Default 1280. | |
| format | No | Image format. Default png. | |
| height | No | Viewport height in px, 240-2160. Default 900. | |
| waitMs | No | Extra settle time after load, 0-10000ms. Few dynamics pages need this. | |
| quality | No | JPEG quality 0-1. Ignored for png. Default 0.8. | |
| blockAds | No | Block requests to major ad/analytics domains before rendering. Default false. | |
| darkMode | No | Render with prefers-color-scheme: dark. Default false. | |
| fullPage | No | Capture the full scrollable page, not just the viewport. Default true. | |
| selector | No | Capture only the element matching this CSS selector, instead of the page. | |
| timeoutMs | No | Navigation timeout in ms, 5000-100000. Default 45000. | |
| waitUntil | No | Puppeteer navigation wait condition. Default networkidle2. | |
| clickSelector | No | CSS selector to click before rendering (expand, dismiss modal, switch tab). | |
| waitForSelector | No | Optional CSS selector to wait for before rendering. | |
| deviceScaleFactor | No | Device pixel ratio, 0.5-3. Default 1. Set 2 for retina. | |
| hideCookieBanners | No | Remove elements that look like cookie consent banners. Default false. |