set_timeline_duration
Set the duration of a Figma Motion timeline to a specified number of seconds. Requires the timeline ID from get_node_motion to target the correct timeline.
Instructions
Set the duration (in seconds, must be > 0) of a Figma Motion timeline. Get the timelineId from get_node_motion (a node's timelines). Returns { ok, nodeId }.
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>",
"timelineId": "<timelineId>",
"duration": "<duration>"
},
"name": "set_timeline_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | A node on the timeline (used to resolve the Motion API) | |
| duration | Yes | New timeline duration in seconds (> 0) | |
| timelineId | Yes | Timeline id from get_node_motion |