readfetch_screenshot
Capture a public URL as PNG or JPEG with headless Chromium and return base64 image data plus metadata for viewport, full-page, or element-specific screenshots.
Instructions
Capture a public URL in headless Chromium and return PNG or JPEG as JSON (image_base64, mime, width, height, status_code, billed) — not a hosted URL. Scope: viewport (full_page: false), the full scrollable page (default), or one element (selector). mode is the whole-call budget: fast (15 s), render (30 s, default), or full (60 s, always full-page). Set width/height before navigation (default 1280×800); use delay_ms after load for SPAs and lazy media. Prefer readfetch_text or readfetch_scrape for readable text, readfetch_pdf for PDF documents, readfetch_fetch for raw HTTP. Blank or bot-check frames may still include an image but billed: false with a hint; paid x402 like other routes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL to render in headless Chromium. | |
| mode | No | Whole-call budget: fast (15 s), render (30 s, default), or full (60 s; always captures the full scrollable page). | render |
| width | No | Viewport width in pixels before navigation (default 1280, max 3840). | |
| format | No | Image encoding for `image_base64` (png default, or jpeg). | png |
| height | No | Viewport height in pixels before navigation (default 800, max 2160). | |
| delay_ms | No | Milliseconds to wait after navigation before capture (0–30000); use for SPAs and lazy-loaded content. | |
| selector | No | CSS selector — capture that element's box only. Omit for page/viewport per full_page. | |
| full_page | No | true (default): entire scrollable document; false: viewport only. Ignored when mode=full. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| hint | No | ||
| mime | No | ||
| size | No | ||
| width | No | ||
| billed | No | ||
| format | No | ||
| height | No | ||
| status | No | ||
| status_code | No | ||
| image_base64 | No | ||
| content_sha256 | No |