set_reactions
Overwrite a node's prototype reactions with new trigger-action pairs. Use to round-trip get_reactions output; returns { ok, nodeId }.
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) |