add_interaction_rule
RECOMMENDED INTERACTION RULE (Alias for add_object_interaction): Adds an interaction rule (When trigger → Do action) to wire events directly to animations and state variables.
add_interaction_rule is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to recommended interaction rule (alias for add_object_interaction): adds an interaction rule (when trigger → do action) to wire events directly to animations and state variables.. 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_interaction_rule to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | Optional | Action to perform |
| id | string | Optional | Optional custom ID |
| objectId | string | Yes | The objectId parameter for add_interaction_rule. |
| path | string | Yes | The path parameter for add_interaction_rule. |
| targetAnimationId | string | Optional | The targetAnimationId parameter for add_interaction_rule. |
| targetInputId | string | Optional | The targetInputId parameter for add_interaction_rule. |
| triggers | array | Optional | Trigger events |
More State Machines & Logic Tools
Build & Review Motion Visually
Let Claude or Cursor run add_interaction_rule, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.