figma_motion_set_duration
Set a Figma Motion timeline's duration in seconds using its timeline id. Dry-run first, then apply with rollback if Figma reports a different duration.
Instructions
Set a Motion timeline's duration in seconds (Motion Beta). Pass the timeline id from figma_motion_inspect; the node must list that timeline. dryRun defaults to TRUE. Apply reads the timeline back and rolls back if Figma reports a different duration or the timeline disappears.
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": {
"timelineId": "<timelineId>",
"duration": "<duration>"
},
"name": "figma_motion_set_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | TRUE (default): plan only, no document write. FALSE: apply in one undo transaction. | |
| nodeId | No | Defaults to the current single selection | |
| planId | No | The planId returned by the dry run. Apply is refused if the arguments or the node's Motion state changed. | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| duration | Yes | Seconds | |
| timelineId | Yes |