Render motion graphics
render_motion_graphicsRender an animated HTML page to an MP4: title cards, kinetic typography, animated charts, logo stings, lower thirds, explainers with shapes and text. You write the page; Masonry films it frame by frame at 30 fps, so the motion is exact and text is crisp, which video models cannot do. Use it when the user wants designed motion rather than filmed footage. It takes a self-contained page (nothing loaded from the network) that animates with CSS animations or window.__render(t). Costs a few credits of render time. Waits for the video and returns it; if it is still rendering when the wait ends, the reply carries a job_id for check_generation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<html>",
"duration": "<duration>"
},
"name": "render_motion_graphics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | One complete, self-contained HTML page. It fills the frame (100vw x 100vh) and animates with CSS animations and/or a function window.__render(t) that draws the frame at t seconds. No network: inline all CSS and JavaScript, use system fonts, and embed images as data: URIs or draw with SVG or canvas. No setTimeout, setInterval, requestAnimationFrame or Date for timing. | |
| title | No | Short name for the video. | |
| duration | Yes | Length in seconds, 1 to 60. | |
| aspect_ratio | No | 9:16 (default), 16:9, 1:1 or 4:5. |