Skip to content

MCP Tools

The editor exposes its entire API through MCP (Model Context Protocol). Every operation available to a human is available to AI. 117 tools across 15 categories.

AI Workflow

  1. Readnode_tree, find, analyze_*
  2. Create/Modifycreate_*, set_*, node_*, render (JSX)
  3. Verifyexport_screenshot → inspect the image
  4. Iteratediff_create to see changes, fix issues
  5. Exportexport_jsx, export_storybook for developer handoff

Create (14 tools)

ToolDescription
create_frameCreate a frame
create_rectCreate a rectangle
create_ellipseCreate an ellipse
create_textCreate a text node
create_lineCreate a line
create_polygonCreate a polygon
create_starCreate a star
create_vectorCreate a vector path
create_componentCreate a component
create_instanceCreate a component instance
create_sectionCreate a section
create_pageCreate a page
create_sliceCreate a slice
create_iconCreate an icon from Iconify

Set / Modify (18 tools)

ToolDescription
set_fillSet fill color (hex or variable ref)
set_strokeSet stroke color and weight
set_stroke-alignSet stroke alignment
set_radiusSet corner radius
set_opacitySet opacity
set_rotationSet rotation angle
set_blendSet blend mode
set_visibleSet visibility
set_lockedSet locked state
set_textSet text content
set_text-resizeSet text auto resize mode
set_fontSet font properties
set_font-rangeSet font for a text range
set_effectSet effect (shadow, blur)
set_imageSet image fill
set_layoutSet auto-layout properties
set_constraintsSet resize constraints
set_minmaxSet min/max width and height

Node Operations (15 tools)

ToolDescription
node_getGet node properties
node_treeGet node tree with properties
node_childrenGet child nodes
node_ancestorsGet ancestor chain to root
node_boundsGet bounding box
node_bindingsGet variable bindings
node_moveMove a node
node_resizeResize a node
node_renameRename a node
node_cloneClone node(s)
node_deleteDelete node(s)
node_set-parentReparent a node
node_replace-withReplace node with another
node_to-componentConvert frame to component
findFind nodes by name or type

Variables & Collections (11 tools)

ToolDescription
variable_listList all variables
variable_getGet variable by ID
variable_findFind variables by name
variable_createCreate a variable
variable_setSet variable value for mode
variable_bindBind variable to node property
variable_deleteDelete a variable
collection_listList variable collections
collection_getGet collection by ID
collection_createCreate a collection
collection_deleteDelete a collection

Components (4 tools)

ToolDescription
component_add-propAdd property to component
component_edit-propEdit component property
component_delete-propDelete component property
component_combineCombine into component set (variants)

Styles (4 tools)

ToolDescription
style_listList local styles
style_create-paintCreate paint/color style
style_create-textCreate text style
style_create-effectCreate effect style

Boolean Operations (4 tools)

ToolDescription
boolean_unionUnion shapes
boolean_subtractSubtract shapes
boolean_intersectIntersect shapes
boolean_excludeExclude shapes

Vector Paths (5 tools)

ToolDescription
path_getGet vector path data
path_setSet vector path data
path_moveMove all path points
path_scaleScale path from center
path_flipFlip path H/V

Groups (3 tools)

ToolDescription
group_createGroup nodes
group_ungroupUngroup nodes
group_flattenFlatten to single vector

Analyze (5 tools)

ToolDescription
analyze_colorsColor palette usage
analyze_typographyTypography usage
analyze_spacingSpacing values
analyze_clustersRepeated patterns
analyze_snapshotAccessibility tree

Export (6 tools)

ToolDescription
export_nodeExport node as image
export_screenshotScreenshot viewport
export_selectionExport selection as image
export_jsxExport as JSX component
export_storybookExport as Storybook stories
export_fontsList fonts used

Diff (5 tools)

ToolDescription
diff_createDiff between two nodes
diff_showShow diff vs provided props
diff_applyApply a diff patch
diff_visualVisual diff as PNG
diff_jsxJSX diff between nodes

Pages & Viewport (7 tools)

ToolDescription
page_listList all pages
page_currentGet current page
page_setSwitch to page
page_boundsBounding box of all objects
viewport_getGet viewport position/zoom
viewport_setSet viewport position/zoom
viewport_zoom-to-fitZoom to fit nodes

Selection & Connectors (6 tools)

ToolDescription
selection_getGet selected nodes
selection_setSet selection
connector_createCreate connector
connector_getGet connector details
connector_setUpdate connector
connector_listList connectors

Meta (10 tools)

ToolDescription
statusCheck connection
lintLint design
importImport SVG
renderRender JSX to nodes
get_componentsGet all components
get_stylesGet local styles
get_pagesGet all pages
font_listList available fonts
comment_watchWait for new comment
evalExecute JS in editor

Released under the MIT License.