set_timeline_duration
Set a timeline's duration in seconds on a node's top-level frame to make room for animation. Omit timelineId to target the node's first timeline; avoid shortening because it truncates existing motion.
Instructions
Set the duration, in seconds, of the timeline owned by the node's containing top-level frame. Omit timelineId to use the node's first timeline. Lengthen to make room for an animation; do not shorten unless the user asked, since it truncates existing motion.
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": {
"nodeId": "<nodeId>",
"duration": "<duration>"
},
"name": "set_timeline_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| duration | Yes | ||
| timelineId | No |