State Machines & Logic · MCP Tool
create_condition
Creates a conditional logic node that evaluates a variable and triggers actions.
Tool Overview & Agent Execution
create_condition is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to creates a conditional logic node that evaluates a variable and triggers actions.. 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:
prompt
"Use create_condition to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| falseAction | object | Optional | The falseAction parameter for create_condition. |
| name | string | Optional | The name parameter for create_condition. |
| operator | string | Yes | The operator parameter for create_condition. |
| path | string | Yes | The path parameter for create_condition. |
| trueAction | object | Yes | The trueAction parameter for create_condition. |
| value | string | Yes | The value parameter for create_condition. |
| variableId | string | Yes | The variableId parameter for create_condition. |
| x | number | Optional | The x parameter for create_condition. |
| y | number | Optional | The y parameter for create_condition. |
More State Machines & Logic Tools
add_behavior
Adds a behavioral sensor (Proximity, Magnetic, Fluid, Sticky, etc) to an object for interactive motion.
add_flow_rule
RECOMMENDED SEQUENCING PRIMITIVE: Adds an animation flow/sequencer rule to orchestrate multi-step transitions and state-driven animations without raster effects.
add_input
RECOMMENDED STATE MACHINE PRIMITIVE: Adds a reactive input variable (Boolean, Number, Trigger, Text) to the state machine to model component states without heavy raster effects.
add_input_variable
RECOMMENDED STATE MACHINE PRIMITIVE (Alias for add_input): Adds a reactive state machine variable to cleanly drive interactive states.
Build & Review Motion Visually
Let Claude or Cursor run create_condition, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.