Artboards & Vector Canvas · MCP Tool
apply_gradient
Applies a LinearGradient or RadialGradient to an object's fill.
Tool Overview & Agent Execution
apply_gradient is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to applies a lineargradient or radialgradient to an object's fill.. 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 apply_gradient to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| center | object | Optional | Radial/Angular center |
| end | object | Optional | LinearGradient end point |
| objectId | string | Yes | The objectId parameter for apply_gradient. |
| path | string | Yes | The path parameter for apply_gradient. |
| radius | number | Optional | RadialGradient radius |
| scale | number | Optional | Pattern scale |
| start | object | Optional | LinearGradient start point |
| stops | array | Yes | The stops parameter for apply_gradient. |
| type | string | Yes | The type parameter for apply_gradient. |
| url | string | Optional | Pattern image url |
More Artboards & Vector Canvas Tools
add_mask
Adds a mask layer config to a target object (editor multi-mask format). Supports alpha/luma masks, inverted masks, feather, opacity, and blend mode.
add_object
Appends a new object (Shape, Frame, Text, etc.) to an artboard. Defaults position to artboard center if omitted or (0,0).
add_screen
Adds a screen to a project (a single-artboard file becomes multi-screen). Blank screens match the active screen's size/background and get an onLoad animation in an entry state, like the editor's; or pass duplicateFrom to copy an existing screen. Wire navigation with add_object_interaction action 'Navigate Artboard'.
add_shadow
Adds a drop shadow or inner shadow to an object.
Build & Review Motion Visually
Let Claude or Cursor run apply_gradient, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.