Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
State Machines & Logic · MCP Tool

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.

Tool Overview & Agent Execution

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:

prompt
"Use add_interaction_rule to configure the motion properties in my active .exode workspace"

Tool Parameters & Input Schema

ParameterTypeRequiredDescription
actionstringOptionalAction to perform
idstringOptionalOptional custom ID
objectIdstringYesThe objectId parameter for add_interaction_rule.
pathstringYesThe path parameter for add_interaction_rule.
targetAnimationIdstringOptionalThe targetAnimationId parameter for add_interaction_rule.
targetInputIdstringOptionalThe targetInputId parameter for add_interaction_rule.
triggersarrayOptionalTrigger 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.