create_timeline
Create an animation timeline with a unique ID and duration before adding keyframes, and configure loop, autoplay, or ping-pong playback behavior.
Instructions
Create an animation timeline. You MUST create a timeline before calling add_keyframes. Set a meaningful id (e.g. "intro", "loop_anim") — you will reference it in add_keyframes.
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": {
"id": "<id>",
"durationMs": "<durationMs>"
},
"name": "create_timeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique timeline id e.g. "intro_anim" | |
| loop | No | Loop the timeline indefinitely | |
| autoplay | No | Start playing automatically on load | |
| pingPong | No | Play forward then backward | |
| loopCount | No | Number of loops (0 = infinite). Only when loop=true | |
| requestId | No | ||
| sessionId | No | ||
| durationMs | Yes | Total timeline duration in milliseconds | |
| expectedRevision | No |