apply_motion_template
Apply a named motion template to a Figma node, converting template parameters into keyframe animations with optional duration control.
Instructions
Apply a named motion template to a node. The server resolves template+params into keyframe tracks and applies them, optionally setting the timeline duration.
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>",
"template": "<template>"
},
"name": "apply_motion_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| params | No | Numeric overrides, e.g. { duration: 0.5, distance: 32 } | |
| template | Yes | Template name from list_motion_templates |