add_widget
Adds a native editor widget, identical to the editor's own: Button, InputBox, Toggle, Slider, Dropdown, Checkbox, RadioGroup, ListView, LineGraph, BarChart, PieChart. Data widgets get the state-machine inputs the editor creates (options, selection, series), so they can be driven live. Pass content directly (label, items, data, categories, labels…) and any option overrides.
add_widget is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to adds a native editor widget, identical to the editor's own: button, inputbox, toggle, slider, dropdown, checkbox, radiogroup, listview, linegraph, barchart, piechart. data widgets get the state-machine inputs the editor creates (options, selection, series), so they can be driven live. pass content directly (label, items, data, categories, labels…) and any option overrides.. 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_widget to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| categories | array | Optional | BarChart x labels |
| checked | boolean | Optional | The checked parameter for add_widget. |
| color | string | Optional | Accent colour (default: the artboard's primary token) |
| data | array | Optional | LineGraph/BarChart/PieChart values |
| geometry | object | Optional | Deep-merged into geometry |
| height | number | Optional | The height parameter for add_widget. |
| items | array | Optional | Dropdown/RadioGroup options or ListView items |
| label | string | Optional | Button text; Checkbox/RadioGroup/Slider label; InputBox/Dropdown placeholder; PieChart centre label |
| labels | array | Optional | PieChart slice labels |
| max | number | Optional | The max parameter for add_widget. |
| min | number | Optional | The min parameter for add_widget. |
| name | string | Optional | The name parameter for add_widget. |
| options | object | Optional | Deep-merged into the widget's options (same keys as the editor's property panel) |
| parentId | string | Optional | Container (Frame/Widget) to place it in; x/y are then relative |
| path | string | Yes | The path parameter for add_widget. |
| seriesLabel | string | Optional | The seriesLabel parameter for add_widget. |
| step | number | Optional | The step parameter for add_widget. |
| type | string | Yes | The type parameter for add_widget. |
| value | string | Optional | Slider number, InputBox text, RadioGroup selection |
| width | number | Optional | The width parameter for add_widget. |
| x | number | Optional | The x parameter for add_widget. |
| y | number | Optional | The y parameter for add_widget. |
More Components & Assets Tools
Build & Review Motion Visually
Let Claude or Cursor run add_widget, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.