topai_headless_screenshot
Capture a live webpage as a viewport or full-page screenshot (PNG, JPEG, WebP) for visual layout inspection and UI verification. Not for text extraction—use web-to-markdown instead.
Instructions
Renders a public webpage in a serverless headless browser and returns viewport or full-page screenshot metadata and dimensions. Use when visual layout inspection, UI verification, or image capture of a live URL is required. Do not use when you only need the textual content of a webpage (use topai_web_to_markdown instead to save 90% bandwidth and tokens). Stateless, read-only, idempotent rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTP/HTTPS URL of the webpage to render and capture (e.g., 'https://github.com'). | |
| format | No | Output image encoding format: 'png', 'jpeg', or 'webp' (default: 'png'). | |
| full_page | No | Set to true to capture the entire scrollable document height, or false for the above-the-fold viewport only (default: false). |