set_reactions
Add prototype interactions such as hover effects, click actions, and transitions to Figma nodes. Define triggers (ON_CLICK, ON_HOVER) and actions (navigate, swap, overlay) to create interactive prototypes.
Instructions
Set prototype interactions (reactions) on a node in Figma. Use this to add hover effects, click interactions, etc. For component variants, set on the default variant to add 'While hovering -> Change to hover variant' interactions.
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>",
"reactions": "<reactions>"
},
"name": "set_reactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to set reactions on | |
| reactions | Yes | Array of reactions to set on the node |