Create composition
create_compositionCreates a new composition from TSX source and opens it as a tab in the user's Motion page. files maps path to source and must include the entry (default composition.tsx). The API is specific to Motion and documented in read_skill {topic:'motion'}; design guidance is in {topic:'motion-craft'}. A partsBoard prop (default false) can lay out UI-like parts for checking before scenes are built.
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": {
"token": "<token>",
"name": "<name>",
"width": "<width>",
"height": "<height>",
"fps": "<fps>",
"durationInFrames": "<durationInFrames>",
"files": "<files>"
},
"name": "create_composition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | Yes | ||
| name | Yes | ||
| entry | No | Defaults to composition.tsx. | |
| files | Yes | ||
| token | Yes | The session token that connect returned. | |
| width | Yes | ||
| height | Yes | ||
| schema | No | Props schema; drives the editable controls. | |
| durationInFrames | Yes |