Canvas & Workspace Management · MCP Tool
add_constraint
Adds a physical or transformation constraint between objects.
Tool Overview & Agent Execution
add_constraint is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to adds a physical or transformation constraint between objects.. 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_constraint to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| boneCount | number | Optional | The boneCount parameter for add_constraint. |
| copyX | boolean | Optional | The copyX parameter for add_constraint. |
| copyY | boolean | Optional | The copyY parameter for add_constraint. |
| damping | number | Optional | The damping parameter for add_constraint. |
| distance | number | Optional | The distance parameter for add_constraint. |
| invertDirection | boolean | Optional | The invertDirection parameter for add_constraint. |
| mass | number | Optional | The mass parameter for add_constraint. |
| mode | string | Optional | The mode parameter for add_constraint. |
| objectId | string | Yes | The objectId parameter for add_constraint. |
| offsetRotation | number | Optional | The offsetRotation parameter for add_constraint. |
| offsetX | number | Optional | The offsetX parameter for add_constraint. |
| offsetY | number | Optional | The offsetY parameter for add_constraint. |
| orient | boolean | Optional | The orient parameter for add_constraint. |
| path | string | Yes | The path parameter for add_constraint. |
| stiffness | number | Optional | The stiffness parameter for add_constraint. |
| strength | number | Optional | The strength parameter for add_constraint. |
| targetId | string | Yes | The targetId parameter for add_constraint. |
| type | string | Yes | The type parameter for add_constraint. |
| useSpring | boolean | Optional | The useSpring parameter for add_constraint. |
More Canvas & Workspace Management Tools
add_layer
Adds a new state machine layer.
animate_properties
RECOMMENDED PRIMARY MOTION TOOL: Animates object transform properties (x, y, scale_x, scale_y, rotation, opacity, skew_x) using keyframes. Extremely memory-efficient, GPU-accelerated 60fps playback with zero filter overhead. Combine with state variables and interaction rules for responsive interfaces.
apply_vibe
Applies a visual style preset (glassmorphism, minimalist, cyberpunk) to an object.
clear_tracks
Clears animation tracks for an object.
Build & Review Motion Visually
Let Claude or Cursor run add_constraint, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.