render
Export a composition or selected element/time range to frame-exact H.264 MP4, with language, quality, and scale controls.
Instructions
Render a composition, or one part of it (the time of an element, or from/to), to MP4: H.264, frame-exact, parallel workers. lang picks the language; lang="all" writes one video per language (-.mp4). quality "draft" encodes fast at a lower quality; scale renders fewer pixels (0.5: 960×540 for 1080p). What is rendered is the composition as it was when render was called: edits made while it runs do not change it (a pin from pin freezes it earlier). For a quick look use preview.
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": {
"composition": "<composition>"
},
"name": "render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Seconds (2.5), frames ("75f") or beats ("4b", needs meta.bpm). Snapped to a whole frame. | |
| out | No | ||
| from | No | Seconds (2.5), frames ("75f") or beats ("4b", needs meta.bpm). Snapped to a whole frame. | |
| lang | No | Language to show (e.g. en). Default: the source language the documents are written in; others come from locales/<lang>.json. "all" renders one video per language | |
| scale | No | Pixel scale of the video | |
| theme | No | ||
| encode | No | Advanced encoding, over quality: codec (h264, or h265 for smaller files), crf (0-51, lower is better; h264 18 looks lossless, 23 is the usual default) or bitrate (kbps, a target instead of a constant quality), preset (encoder speed: slower makes smaller files of the same quality), keyframe (seconds between keyframes), audio (the sound in kbps). The web version encodes by bitrate: a crf there becomes a bitrate and preset does not apply. | |
| element | No | An element or nested composition id: limit to its time | |
| quality | No | final: x264 medium, CRF 18; draft: x264 ultrafast, CRF 26, for a quick check | final |
| workers | No | ||
| background | No | Return a job at once and render in the background (MCP and HTTP only); follow it with jobs, stop it with cancel | |
| composition | Yes | Composition name (file in compositions/ without .json) |