screenshot_url
Capture a web page screenshot as a base64 PNG using a headless browser with JavaScript execution. Supports viewport settings and full page capture for visual regression, archiving, or preview generation.
Instructions
Capture a screenshot of a web page and return it as a base64-encoded PNG.
Renders the page in a headless Chromium browser with JavaScript execution,
waits for network idle (all resources loaded), then captures the viewport
or full page. Useful for visual regression checks, archiving page state,
generating previews, or letting an AI model analyse page layout.
Args:
url: Full URL of the page to capture (must include https://).
width: Viewport width in pixels (default 1280, range 320–3840).
height: Viewport height in pixels (default 800, range 200–2160).
full_page: If True, capture the full scrollable page height rather
than just the visible viewport. May be slow for long pages.
Returns:
png_b64: Base64-encoded PNG image data.
w: Actual image width in pixels.
h: Actual image height in pixels.
bytes: File size of the PNG in bytes.
ms: Time taken to render and capture in milliseconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| width | No | ||
| height | No | ||
| full_page | No |