apply_animation_style
Apply a reusable animation style to a Figma node by style ID or name, returning the instance ID for removal. Set duration and timeline offset in seconds at the top level, not in props.
Instructions
Apply a reusable animation style to a node. Identify it by styleId from list_animation_styles, or by styleName for a substring match. duration and timelineOffset are seconds and are top-level, not props. Returns the applied instance id needed by remove_animation_style. Verify the result against animationStyles in the response — applying a style does not materialize tracks into animations.
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>"
},
"name": "apply_animation_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| props | No | ||
| nodeId | Yes | ||
| styleId | No | ||
| duration | No | ||
| styleName | No | ||
| extendTimeline | No | ||
| timelineOffset | No | ||
| allowTopLevelFrame | No |