render_html
Convert raw HTML strings into screenshot images for email templates, certificates, or reports. Specify output format as PNG, JPEG, WebP, or PDF.
Instructions
Render a raw HTML string (email template, certificate, report card, etc.) to a screenshot image. Requires STARTER plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Full HTML document or fragment to render. External resources (CDN fonts, images) will load normally. | |
| css | No | Additional CSS to inject into the page. | |
| format | No | Output format. | png |
| dimensions | No | Viewport dimensions. Defaults to 1280x720. | |
| waitForResult | No | If true (default), waits for completion and returns the screenshot URL. |