create_document
Create a document: a video edit with versions, like a git repository. Give jsx, the whole document, to create it in one call at any size, frame rate and length; without jsx it starts empty (10 seconds of 1920x1080 at 30 fps). The canvas needs every one of its fields (a sound-only document's too, whose width and height then draw nothing), and the timeline its schemaVersion, as in this 6-second vertical (9:16) video with a background: export default (<timeline canvas={{alphaMode: "premultiplied", colorSpace: "srgb", duration: 6, frameRate: {numerator: 30, denominator: 1}, height: 1920, ticksPerSecond: 1000, width: 1080}} schemaVersion={23}><fill id="bg" common={{order: "a0"}} paint={{style: "fill", source: {type: "solid", color: "#10233f"}}} /></timeline>); Each node is an element whose tag is its type, with an id, its fields as attributes and its children inside. Times are seconds, colours "#rrggbb" or, with alpha, "#rrggbbaa", and Doc.keys([seconds, value, easing], ...) is a keyframe curve, whose times count from the node's own start. edit_document's description shows how to write each kind of node and asset, and https://rendermate.com/docs/documents has the rest. The JSX get_document returns starts with a comment that explains the whole notation. Write the document out whole, without Doc.cut or Doc.more.
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": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jsx | No | The whole document to start from, written as JSX (https://rendermate.com/docs/documents): `export default (<timeline canvas={{…}}>…</timeline>)`. When absent, the document starts empty: 10 seconds of 1920×1080 at 30 fps. | |
| name | No | A name people recognize it by, such as "Q3 update"; at most 200 characters. | |
| message | No | The first commit's message. | |
| commit_id | No | A UUID that makes the create safe to send again: sent again with the same one, it answers with the document it made instead of making another. The `Idempotency-Key` header does the same. | |
| project_id | No | The project to put it in, `prj_…`; the workspace's default project when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document, `doc_…`. | |
| jsx | No | The [Rendermate document](https://rendermate.com/docs/documents) at this version, written as JSX; only when it's read, not when it's created or committed. Edit it with edit_document, giving this version as `base_version`. | |
| author | No | The API key, or the member, that made it. | |
| sha256 | Yes | SHA-256 of the document as canonical JSON. | |
| message | No | What the commit changes and why. | |
| version | Yes | The version's number: 1 for the document as created, one more for each commit. | |
| commit_id | Yes | The commit that made the version. | |
| committed_at | No | RFC 3339. |