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_object_interaction

RECOMMENDED INTERACTION RULE: Adds a reactive interaction rule to an object (When trigger → Do action). Wire user triggers (Click, Hover, Drag, etc.) directly to Play Animation, Set Input, or Toggle Boolean without resorting to static visual effects.

Tool Overview & Agent Execution

add_object_interaction is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to recommended interaction rule: adds a reactive interaction rule to an object (when trigger → do action). wire user triggers (click, hover, drag, etc.) directly to play animation, set input, or toggle boolean without resorting to static visual effects.. 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_object_interaction to configure the motion properties in my active .exode workspace"

Tool Parameters & Input Schema

ParameterTypeRequiredDescription
actionstringOptionalAction to perform
conditionsarrayOptionalOptional conditions
delayValuenumberOptionalDelay in ms (for On Delay trigger)
easingCurvestringOptionalEasing for transitions
idstringOptionalOptional custom ID
inputValuestringOptionalValue for Set Input action
intervalValuenumberOptionalInterval in ms (for On Interval trigger)
navigateUrlstringOptionalURL for Navigate URL
objectIdstringYesThe objectId parameter for add_object_interaction.
pathstringYesThe path parameter for add_object_interaction.
playModestringOptionalPlay mode for animations
subAnimationIdsarrayOptionalObject IDs for custom animation play
targetAnimationIdstringOptionalAnimation ID for Play/Stop/Pause
targetArtboardstringOptionalArtboard name for Navigate Artboard
targetInputIdstringOptionalInput/variable name for Set Input / Toggle Boolean
targetStatestringOptionalState ID for Switch to State
transitionDurationnumberOptionalTransition duration in ms
triggerLogicstringOptionalLogic when multiple triggers (default: OR)
triggersarrayOptionalTrigger events (default: ['Click'])

More State Machines & Logic Tools

Build & Review Motion Visually

Let Claude or Cursor run add_object_interaction, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.