create_export
Export a document version to download: an MP4 (H.264 video with AAC sound, silent when the document has none), or with format m4a its sound alone as an M4A, which is how a version that has only sound exports. It renders in the background: call get_export with its ID until it's done. Exporting a version again reuses what was already rendered.
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": {
"document_id": "<document_id>"
},
"name": "create_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | An alias, such as `latest`; `latest` when neither this nor `version` is given. | |
| format | No | `mp4` or `m4a`. Absent, a version with a picture exports as `mp4` and one that has only sound (every node is `audio` or `tone`) as `m4a`, which is also its only format. | |
| version | No | A version, by number. | |
| document_id | Yes | The document to export, `doc_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `exp_…`. | |
| error | Yes | Why it failed. | |
| usage | Yes | Once it has succeeded, its video segments (an `m4a`'s audio segments) and how many of them it rendered; the rest were reused from earlier renders (playback, or an identical export) and cost nothing. | |
| status | Yes | `queued`, `running`, `succeeded` or `failed`. | |
| version | Yes | The document version it exports. | |
| file_name | Yes | The file name it downloads as. | |
| created_at | Yes | RFC 3339. | |
| updated_at | Yes | RFC 3339: when its status last changed. | |
| document_id | Yes | The document it exports. | |
| download_url | Yes | Once it has succeeded, where to download it (ranges work); it expires in about a day. |