set_reactions
Set all prototype reactions on a Figma node, overwriting existing ones. Each reaction pairs a trigger with an actions array.
Instructions
Replace all of a node's prototype reactions — this overwrites existing reactions rather than appending. Each reaction pairs a trigger (e.g. { type: 'ON_CLICK' }) with an actions array (e.g. { type: 'NODE', destinationId, navigation, transition }). Best used to round-trip get_reactions output; to clear all reactions instead use remove_reactions. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Node to set reactions on | |
| reactions | Yes | Reactions to apply (replaces existing) |