State Machines & Logic · MCP Tool
add_behavior
Adds a behavioral sensor (Proximity, Magnetic, Fluid, Sticky, etc) to an object for interactive motion.
Tool Overview & Agent Execution
add_behavior is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to adds a behavioral sensor (proximity, magnetic, fluid, sticky, etc) to an object for interactive motion.. 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 add_behavior to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| enabled | boolean | Optional | The enabled parameter for add_behavior. |
| endTime | number | Optional | Behavior end time (default 100) |
| objectId | string | Yes | The objectId parameter for add_behavior. |
| path | string | Yes | The path parameter for add_behavior. |
| sensors | array | Optional | The sensors parameter for add_behavior. |
| settings | object | Optional | The settings parameter for add_behavior. |
| startTime | number | Optional | Behavior start time (default 0) |
| type | string | Yes | The type parameter for add_behavior. |
More State Machines & Logic Tools
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.
add_interaction_condition
Adds a condition to an existing interaction rule.
Build & Review Motion Visually
Let Claude or Cursor run add_behavior, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.