Render HTML Video
render_html_videoRender a HyperFrames HTML/CSS/JS composition to a video. Use only when the user explicitly asks for HTML-to-video, HyperFrames, code-driven motion, or supplies animated HTML.
Asynchronous: it returns a job at once, and check_job gives the URL when it is completed. A failed render is refunded automatically.
Supply exactly one source: html, project_url (any publicly downloadable HTTPS ZIP; pass a ZIP URL from search_examples({ id }) directly) or project_asset_id (a ZIP in the Library: a project asset from get_upload_url type project, or an ordinary zip asset). The ZIP is a static project with index.html or dist/index.html. npm is never run: a project with a build script must include its built dist/index.html.
Authoring contract: one complete document with a fixed-size root declaring data-composition-id, data-width, data-height and data-duration matching width, height and duration. Register a paused GSAP timeline at window.__timelines[compositionId]. Tailwind utility classes work without a CDN. Load other dependencies with pinned script URLs. Derive every frame from the timeline time, not the wall clock. For sound, add ; if the audio is silent in the output the render fails and is refunded.
Pricing by effective seconds = duration × (pixels / 1920×1080) × (fps / 30). Single HTML: 5 credits for the first 15 effective seconds, then 1 per 15 more. ZIP: 1 credit per 2 effective seconds, at least 5. Up to 300 seconds and 3840 pixels per side.
In this app, a designed video from a brief goes to generate_html_video by default. Use this tool when the user supplies HTML or a project, or asks you to write the HTML yourself.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_html_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | 24, 30 or 60; others are rounded to the nearest. Default: 30. | |
| html | No | The composition. Pass this, project_url or project_asset_id. | |
| name | No | Optional asset name for the saved file. | |
| tags | No | Optional tags for the saved file. | |
| width | No | Even number, 2-3840. Default: 1920. | |
| format | No | Default: mp4. | |
| height | No | Even number, 2-3840. Default: 1080. | |
| duration | No | Seconds, up to 300. Default: 5. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| project_url | No | Publicly downloadable HTTPS URL of a static project ZIP, e.g. a ZIP URL from search_examples({ id }). | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| project_asset_id | No | A ZIP in the Library instead of html: a project asset (get_upload_url type project, recommended) or an ordinary zip asset. Static projects only: index.html or a built dist/index.html. |