set_reactions
Replace a node's prototype reactions to define triggers and actions for click, hover, timeout, navigation, transitions, and variant hover behavior.
Instructions
Replace the prototype reactions of a node. Each reaction: { trigger: {type: ON_CLICK|ON_HOVER|ON_PRESS|ON_DRAG|AFTER_TIMEOUT|MOUSE_ENTER|MOUSE_LEAVE|MOUSE_UP|MOUSE_DOWN, timeout?, delay?}, actions: [{type: NODE|BACK|CLOSE|URL, destinationId?, navigation?: NAVIGATE|CHANGE_TO|OVERLAY|SWAP|SCROLL_TO, transition?: {type: SMART_ANIMATE|DISSOLVE|MOVE_IN|PUSH|SLIDE_IN, duration (seconds), easing: {type: EASE_IN|EASE_OUT|EASE_IN_AND_OUT|LINEAR|...}}, url?}] }. For variant hover, put ON_HOVER with CHANGE_TO on a variant component and point to the hover variant.
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 | ||
| reactions | Yes |