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 →
Components & Assets · MCP Tool

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.

Tool Overview & Agent Execution

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:

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

Tool Parameters & Input Schema

ParameterTypeRequiredDescription
categoriesarrayOptionalBarChart x labels
checkedbooleanOptionalThe checked parameter for add_widget.
colorstringOptionalAccent colour (default: the artboard's primary token)
dataarrayOptionalLineGraph/BarChart/PieChart values
geometryobjectOptionalDeep-merged into geometry
heightnumberOptionalThe height parameter for add_widget.
itemsarrayOptionalDropdown/RadioGroup options or ListView items
labelstringOptionalButton text; Checkbox/RadioGroup/Slider label; InputBox/Dropdown placeholder; PieChart centre label
labelsarrayOptionalPieChart slice labels
maxnumberOptionalThe max parameter for add_widget.
minnumberOptionalThe min parameter for add_widget.
namestringOptionalThe name parameter for add_widget.
optionsobjectOptionalDeep-merged into the widget's options (same keys as the editor's property panel)
parentIdstringOptionalContainer (Frame/Widget) to place it in; x/y are then relative
pathstringYesThe path parameter for add_widget.
seriesLabelstringOptionalThe seriesLabel parameter for add_widget.
stepnumberOptionalThe step parameter for add_widget.
typestringYesThe type parameter for add_widget.
valuestringOptionalSlider number, InputBox text, RadioGroup selection
widthnumberOptionalThe width parameter for add_widget.
xnumberOptionalThe x parameter for add_widget.
ynumberOptionalThe 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.