Update motion composition
update_motion_compositionUpdates a motion composition's TSX files and/or manifest (name, duration, schema…). Same compile-and-test gate as create; files given here MERGE over the existing set. Every clip playing the composition re-renders. preview:true returns one large frame of the result with the reply.
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": {
"projectId": "<projectId>",
"compositionId": "<compositionId>",
"token": "<token>"
},
"name": "update_motion_composition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| name | No | ||
| files | No | File name → TSX source (merged). | |
| token | Yes | The session token `connect` returned. Pass it on every call — it says which browser to drive. | |
| width | No | ||
| height | No | ||
| schema | No | ||
| preview | No | Return one large frame (≤1560 px) with the reply. Media is not loaded in a preview: media slots draw empty and the reply says how many. | |
| projectId | Yes | Project id from get_projects. | |
| previewFrame | No | Frame to preview (default 0). | |
| previewProps | No | Merged over the schema defaults for the preview picture only, e.g. {partsBoard:true}. Nothing saved changes. | |
| compositionId | Yes | From create/list_motion_compositions. | |
| durationInFrames | No |