add_logic_node
Adds a logic gate to the state machine. Supports boolean (AND/OR/NOT/XOR), math (ADD/SUB/MUL/DIV/MOD/POW/ABS/ROUND/FLOOR/CEIL/SIN/COS/TAN/CLAMP/REMAP), comparison (EQ/NEQ/GT/LT/GTE/LTE), utility (IF_ELSE/VALUE/INPUT/LOG), scroll/mouse (SCROLL_X/SCROLL_Y/MOUSE_X/MOUSE_Y/IS_MOUSE_DOWN), and property (OBJECT/PROPERTY/GET_PROPERTY/SET_PROPERTY) operations.
add_logic_node is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to adds a logic gate to the state machine. supports boolean (and/or/not/xor), math (add/sub/mul/div/mod/pow/abs/round/floor/ceil/sin/cos/tan/clamp/remap), comparison (eq/neq/gt/lt/gte/lte), utility (if_else/value/input/log), scroll/mouse (scroll_x/scroll_y/mouse_x/mouse_y/is_mouse_down), and property (object/property/get_property/set_property) operations.. It directly inspects and modifies local .exode JSON files with precision without manual UI tweaking.
Example Prompt for Claude Code & Cursor
Give this instruction to your AI coding agent to execute this tool on your active .exode workspace:
"Use add_logic_node to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | array | Optional | The inputs parameter for add_logic_node. |
| label | string | Optional | Custom label for logging |
| name | string | Optional | The name parameter for add_logic_node. |
| op | string | Yes | Logic operation: AND, OR, NOT, XOR, ADD, SUB, MUL, DIV, MOD, POW, ABS, ROUND, FLOOR, CEIL, SIN, COS, TAN, CLAMP, REMAP, EQ, NEQ, GT, LT, GTE, LTE, IF_ELSE, VALUE, INPUT, LOG, OBJECT, PROPERTY, GET_PROPERTY, SET_PROPERTY, SCROLL_X, SCROLL_Y, MOUSE_X, MOUSE_Y, IS_MOUSE_DOWN, EFFECTOR, MONITOR |
| path | string | Yes | The path parameter for add_logic_node. |
| value | string | Optional | Static value for VALUE nodes |
| x | number | Optional | The x parameter for add_logic_node. |
| y | number | Optional | The y parameter for add_logic_node. |
More State Machines & Logic Tools
Build & Review Motion Visually
Let Claude or Cursor run add_logic_node, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.