render_html_video
Export animated HTML pages as shareable clips by rendering frame-by-frame without quality loss, producing MP4, WebM, or GIF files up to 4K.
Instructions
Render an HTML document (CSS / JS / canvas animation) to mp4/gif/webm.
Use this to export a self-contained animated HTML page (e.g. one you just
designed) as a shareable clip. Captures the animation frame-by-frame
(full color, no dropped frames, no quality loss) and encodes a
color-correct H.264 MP4 / VP9 WebM / palette GIF — up to 4K, 5-60 fps.
Returns the absolute path to the encoded file, written under the bundle
directory. Requires the optional render extra (Playwright) + ffmpeg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| html | Yes | ||
| width | No | ||
| format | No | mp4 | |
| height | No | ||
| duration_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |