figma-mcp-go

v0.1.3
io.github.vkhanhqui/figma-mcp-go Checked 4 days ago Published 7 months ago

Figma MCP server with full read/write access via plugin — no API token, no rate limits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

add_page

Add a new page to the Figma document.

ParameterTypeDescription
indexnumberPosition index to insert the page (0 = first). Defaults to last position.
namestringName for the new page (default 'Page')

add_variable_mode

Add a new mode to an existing variable collection (e.g. Light/Dark, Desktop/Mobile). IMPORTANT — Figma free plan only allows 1 mode per collection; calling this tool on a free-plan account will return the error 'Limited to 1 modes only'. If that error occurs, stop retrying and switch to the name-prefix workaround: keep the single default mode and create variables prefixed by mode, e.g. 'light/color-bg' and 'dark/color-bg' in the same collection. Tell the user that native multi-mode variables require a paid Figma plan (Professional or above).

ParameterTypeDescription
collectionId *stringVariable collection ID
modeName *stringName for the new mode

apply_style_to_node

Apply an existing local style (paint, text, effect, or grid) to a node, linking the node to that style.

ParameterTypeDescription
nodeId *stringTarget node ID in colon format e.g. 4029:12345
styleId *stringStyle ID to apply (from get_styles)
targetstringFor paint styles only — apply to 'fill' (default) or 'stroke'

batch_rename_nodes

Rename multiple nodes using find/replace, regex substitution, or prefix/suffix addition.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
findstringString (or regex pattern when useRegex=true) to search for in the node name
prefixstringString to prepend to the node name
regexFlagsstringRegex flags e.g. 'gi' (default 'g'). Only used when useRegex=true.
replacestringReplacement string. Required when find is provided.
suffixstringString to append to the node name
useRegexbooleanTreat find as a regular expression (default false)

bind_variable_to_node

Bind a local variable to a node property so the property is driven by the variable's value. COLOR variables: use fillColor or strokeColor. BOOLEAN variables: use visible. FLOAT variables: use opacity, rotation, width, height, cornerRadius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, strokeWeight, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft.

ParameterTypeDescription
field *stringProperty to bind: fillColor | strokeColor | visible | opacity | rotation | width | height | cornerRadius | topLeftRadius | topRightRadius | bottomLeftRadius | bottomRightRadius | strokeWeight | itemSp…
nodeId *stringTarget node ID in colon format e.g. 4029:12345
variableId *stringVariable ID to bind (from get_variable_defs)

clone_node

Clone an existing node, optionally repositioning it or placing it in a new parent.

ParameterTypeDescription
nodeId *stringSource node ID in colon format e.g. '4029:12345'
parentIdstringParent node ID for the clone. Defaults to same parent as source.
xnumberX position of the clone
ynumberY position of the clone

create_component

Convert an existing FRAME node into a reusable COMPONENT. The frame is replaced in place by the new component.

ParameterTypeDescription
nodeId *stringFRAME node ID to convert, in colon format e.g. '4029:12345'
namestringOptional name for the component. Defaults to the frame's current name.

create_effect_style

Create a new local effect style (drop shadow, inner shadow, or blur).

ParameterTypeDescription
name *stringStyle name e.g. 'Shadow/Card'
colorstringShadow color as hex e.g. #000000 (default #000000, shadows only)
descriptionstringOptional style description
offsetXnumberShadow X offset in pixels (default 0, shadows only)
offsetYnumberShadow Y offset in pixels (default 4, shadows only)
opacitynumberShadow color opacity 0–1 (default 0.25, shadows only)
radiusnumberBlur radius in pixels (default 8 for shadows, 4 for blurs)
spreadnumberShadow spread in pixels (default 0, shadows only)
typestringEffect type: DROP_SHADOW (default), INNER_SHADOW, LAYER_BLUR, or BACKGROUND_BLUR

create_ellipse

Create a new ellipse (circle/oval) on the current page or inside a parent node.

ParameterTypeDescription
fillColorstringFill color as hex e.g. #3B82F6
heightnumberHeight in pixels (default 100)
namestringEllipse name
parentIdstringParent node ID in colon format. Defaults to current page.
widthnumberWidth in pixels (default 100)
xnumberX position (default 0)
ynumberY position (default 0)

create_frame

Create a new frame on the current page or inside a parent node.

ParameterTypeDescription
counterAxisAlignItemsstringCross-axis alignment: MIN, CENTER, MAX, or BASELINE
counterAxisSizingModestringCross-axis sizing: FIXED or AUTO (hug)
counterAxisSpacingnumberGap between wrapped rows/columns (only when layoutWrap is WRAP)
fillColorstringFill color as hex e.g. #FFFFFF
heightnumberHeight in pixels (default 100)
itemSpacingnumberAuto-layout gap between children
layoutModestringAuto-layout direction: HORIZONTAL, VERTICAL, or NONE
layoutWrapstringWrap behaviour: NO_WRAP or WRAP
namestringFrame name
paddingBottomnumberAuto-layout bottom padding
paddingLeftnumberAuto-layout left padding
paddingRightnumberAuto-layout right padding
paddingTopnumberAuto-layout top padding
parentIdstringParent node ID in colon format. Defaults to current page.
primaryAxisAlignItemsstringMain-axis alignment: MIN, CENTER, MAX, or SPACE_BETWEEN
primaryAxisSizingModestringMain-axis sizing: FIXED or AUTO (hug)
widthnumberWidth in pixels (default 100)
xnumberX position (default 0)
ynumberY position (default 0)

create_grid_style

Create a new local layout grid style.

ParameterTypeDescription
name *stringStyle name e.g. 'Grid/Desktop'
alignmentstringAlignment: STRETCH (default), CENTER, MIN, or MAX (COLUMNS/ROWS only)
colorstringGrid line color as hex e.g. #FF0000 (GRID only, default #FF0000)
countnumberNumber of columns or rows (COLUMNS/ROWS only, default 12)
descriptionstringOptional style description
gutterSizenumberGutter size in pixels (COLUMNS/ROWS only, default 16)
offsetnumberMargin/offset in pixels (COLUMNS/ROWS only, default 0)
opacitynumberGrid line opacity 0–1 (GRID only, default 0.1)
patternstringGrid pattern: GRID (default), COLUMNS, or ROWS
sectionSizenumberGrid cell size in pixels (GRID only, default 8)

create_paint_style

Create a new local paint style with a solid fill color.

ParameterTypeDescription
color *stringFill color as hex e.g. #FF5733
name *stringStyle name e.g. 'Brand/Primary'
descriptionstringOptional style description

create_rectangle

Create a new rectangle on the current page or inside a parent node.

ParameterTypeDescription
cornerRadiusnumberCorner radius in pixels
fillColorstringFill color as hex e.g. #FF5733
heightnumberHeight in pixels (default 100)
namestringRectangle name
parentIdstringParent node ID in colon format. Defaults to current page.
widthnumberWidth in pixels (default 100)
xnumberX position (default 0)
ynumberY position (default 0)

create_section

Create a Figma Section node on the current page. Sections are the modern way to organize frames and groups on a page.

ParameterTypeDescription
heightnumberHeight in pixels
namestringSection name (default 'Section')
widthnumberWidth in pixels
xnumberX position (default 0)
ynumberY position (default 0)

create_text

Create a new text node on the current page or inside a parent node. The font is loaded automatically before insertion. Returns the created node ID and bounds. Use set_text to update the content of an existing text node.

ParameterTypeDescription
text *stringText content to display
fillColorstringText color as hex e.g. #000000 (default black)
fontFamilystringFont family name e.g. 'Inter', 'Roboto', 'SF Pro Display' (default Inter). Must be a font installed in Figma.
fontSizenumberFont size in pixels (default 14)
fontStylestringFont style variant e.g. 'Regular', 'Bold', 'Italic', 'Medium', 'SemiBold' (default Regular). Must match an available style for the chosen fontFamily.
namestringNode name shown in the layers panel (defaults to the text content)
parentIdstringParent node ID in colon format. Defaults to current page.
xnumberX position in pixels (default 0)
ynumberY position in pixels (default 0)

create_text_style

Create a new local text style (typography preset). Returns the new style's ID. Apply it to nodes with apply_style_to_node. Use get_styles to list existing text styles.

ParameterTypeDescription
name *stringStyle name — use slash notation to organise into groups e.g. 'Heading/H1', 'Body/Regular'
descriptionstringOptional human-readable description shown in the Figma style panel
fontFamilystringFont family name e.g. 'Inter', 'Roboto' (default Inter). Must be installed in Figma.
fontSizenumberFont size in pixels (default 16)
fontStylestringFont style variant e.g. 'Regular', 'Bold', 'Medium', 'SemiBold' (default Regular)
letterSpacingUnitstringLetter spacing unit: PIXELS (default) or PERCENT
letterSpacingValuenumberLetter spacing value (unit set by letterSpacingUnit)
lineHeightUnitstringLine height unit: PIXELS (default) or PERCENT
lineHeightValuenumberLine height value (unit set by lineHeightUnit)
textDecorationstringText decoration: NONE (default), UNDERLINE, or STRIKETHROUGH

create_variable

Create a new variable (design token) inside an existing collection. Returns the new variable's ID. Use get_variable_defs to find collection IDs, set_variable_value to set values per mode, and bind_variable_to_node to apply the variable to a node property.

ParameterTypeDescription
collectionId *stringID of the variable collection to add this variable to (from get_variable_defs)
name *stringVariable name — use slash notation to group e.g. 'Color/Primary', 'Spacing/MD'
type *stringVariable type: COLOR (hex color), FLOAT (numeric dimension/spacing), STRING (text), or BOOLEAN (true/false toggle)
valuestringInitial value for the first mode. COLOR: hex e.g. #FF5733. FLOAT: number e.g. 16. STRING: text. BOOLEAN: true or false.

create_variable_collection

Create a new local variable collection with an optional initial mode name. NOTE — Figma free plan limits each collection to 1 mode. If you need Light/Dark (or any multi-mode) theming and the user is on the free plan, do NOT try to call add_variable_mode; instead use the name-prefix workaround: create all variables in a single collection and prefix each variable name with its mode, e.g. 'light/color-bg' and 'dark/color-bg'. Inform the user of this limitation.

ParameterTypeDescription
name *stringCollection name
initialModeNamestringName for the initial mode (default 'Mode 1')

delete_nodes

Delete one or more nodes. This cannot be undone via MCP — use with care.

ParameterTypeDescription
nodeIds *arrayNode IDs to delete in colon format e.g. ['4029:12345']

delete_page

Delete a page from the Figma document. Cannot delete the only remaining page.

ParameterTypeDescription
pageIdstringPage node ID in colon format e.g. '0:2'
pageNamestringExact page name to delete (alternative to pageId)

delete_style

Delete a style (paint, text, effect, or grid) by its ID.

ParameterTypeDescription
styleId *stringStyle ID to delete

delete_variable

Delete a single variable (provide variableId) or an entire collection and all its variables (provide collectionId). Provide exactly one of the two — not both.

ParameterTypeDescription
collectionIdstringCollection ID to delete (removes all variables in the collection)
variableIdstringVariable ID to delete

detach_instance

Detach one or more component instances, converting them to plain frames. The link to the main component is broken; all visual properties are preserved.

ParameterTypeDescription
nodeIds *arrayINSTANCE node IDs in colon format e.g. ['4029:12345']

export_frames_to_pdf

Export multiple frames as a single multi-page PDF file. Each frame becomes one page in order. Ideal for pitch decks, proposals, and slide exports.

ParameterTypeDescription
nodeIds *arrayOrdered list of frame node IDs to export as PDF pages, colon format e.g. '4029:12345'
outputPath *stringFile path to write the PDF to, must end in .pdf (relative to working directory or absolute)

export_tokens

Export all design tokens (variables and paint styles) as JSON or CSS custom properties. Ideal for bridging Figma variables into your codebase.

ParameterTypeDescription
formatstringOutput format: json (default) or css

find_replace_text

Find and replace text content across all TEXT nodes in a subtree. Searches the entire current page if no nodeId is given.

ParameterTypeDescription
find *stringText string (or regex pattern when useRegex=true) to search for
replace *stringReplacement string (use empty string to delete matches)
nodeIdstringRoot node ID to scope the search. Defaults to the entire current page.
regexFlagsstringRegex flags e.g. 'gi' (default 'g'). Only used when useRegex=true.
useRegexbooleanTreat find as a regular expression (default false)

get_annotations

Get dev-mode annotations in the current document or scoped to a specific node. Returns annotation objects with label text, measurement type, and the ID of the annotated node. Omit nodeId to retrieve all annotations on the current page.

ParameterTypeDescription
nodeIdstringOptional — scope results to annotations on this node and its descendants, colon format e.g. '4029:12345'

get_design_context

Get a depth-limited, token-efficient tree of the current selection or page. Use this instead of get_document when exploring large files. Supports detail levels (minimal/compact/full) and dedupe_components for pages heavy with repeated component instances.

ParameterTypeDescription
dedupe_componentsbooleanWhen true, INSTANCE nodes are serialized compactly (mainComponentId + componentProperties + overrides array of differing text/nested content) and unique component definitions are collected once in a t…
depthnumberHow many levels deep to traverse (default 2)
detailstringProperty verbosity: minimal (id/name/type/bounds only), compact (+fills/strokes/opacity), full (everything, default)

get_document

Get the full node tree of the current page (not the whole file — only the active page). Returns all nodes recursively and can be very large. Prefer get_design_context for exploration or when token efficiency matters.

get_fonts

List all fonts used in the current page, sorted by usage frequency. Useful for understanding typography without scanning all text nodes.

get_local_components

Get all components defined in the current Figma file.

get_metadata

Get metadata about the current Figma document: file name, pages, current page

get_node

Get a single node by ID with full detail. Use get_nodes_info to fetch multiple nodes in one round-trip instead of calling this repeatedly. Node ID must be colon format e.g. '4029:12345', never hyphens.

ParameterTypeDescription
nodeId *stringNode ID in colon format e.g. '4029:12345'

get_nodes_info

Get full details for multiple nodes by ID in one round-trip. Prefer this over calling get_node repeatedly when you need several nodes.

ParameterTypeDescription
nodeIds *arrayList of node IDs in colon format e.g. ['4029:12345', '4029:67890']

get_pages

List all pages in the document with their IDs and names. Lightweight alternative to get_document.

get_reactions

Get the prototype reactions defined on a node. Returns an array of reaction objects — each has a trigger (e.g. ON_CLICK, ON_HOVER, AFTER_TIMEOUT) and an actions array (navigate to node, open URL, go back, etc.). Use set_reactions to add or replace reactions, remove_reactions to delete them.

ParameterTypeDescription
nodeId *stringNode ID in colon format e.g. '4029:12345'

get_screenshot

Export a screenshot of one or more nodes as base64-encoded image data (held in memory). Use save_screenshots instead when you want to write images directly to disk without base64 in the response.

ParameterTypeDescription
formatstringExport format: PNG (default), SVG, JPG, or PDF
nodeIdsarrayOptional node IDs to export, colon format. If empty, exports current selection.
scalenumberExport scale for raster formats (default 2)

get_selection

Get the nodes currently selected in Figma. Returns an empty array if nothing is selected. Use get_design_context or get_node to retrieve deeper detail about a specific node by ID.

get_styles

Get all local styles in the document (paint, text, effect, and grid). Returns each style's ID, name, type, and properties. Use the style ID with apply_style_to_node or update_paint_style. For design tokens (variables), use get_variable_defs instead.

get_variable_defs

Get all local variable definitions: collections, modes, and values. Variables are Figma's design token system.

get_viewport

Get the current Figma viewport: scroll center, zoom level, and visible bounds.

group_nodes

Group two or more nodes into a GROUP. All nodes must share the same parent.

ParameterTypeDescription
nodeIds *arrayNode IDs to group (minimum 2), in colon format e.g. ['4029:12345', '4029:12346']
namestringOptional name for the new group

import_image

Import a base64-encoded image into Figma as a rectangle with an image fill. Use get_screenshot to capture images or provide your own base64 PNG/JPG.

ParameterTypeDescription
imageData *stringBase64-encoded image data (PNG or JPG)
heightnumberHeight in pixels (default 200)
namestringNode name
parentIdstringParent node ID in colon format. Defaults to current page.
scaleModestringImage scale mode: FILL (default), FIT, CROP, or TILE
widthnumberWidth in pixels (default 200)
xnumberX position (default 0)
ynumberY position (default 0)

lock_nodes

Lock one or more nodes to prevent accidental edits in Figma.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']

move_nodes

Move one or more nodes to an absolute canvas position. The same x/y is applied to every node independently (not a relative offset from current position).

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
xnumberTarget X position
ynumberTarget Y position

navigate_to_page

Switch the active Figma page. Provide either pageId or pageName.

ParameterTypeDescription
pageIdstringPage node ID in colon format e.g. '0:1'
pageNamestringExact page name to navigate to

remove_reactions

Remove prototype reactions from a node. Omit indices to remove all reactions. Provide a zero-based indices array to remove specific reactions (use get_reactions first to see current indices).

ParameterTypeDescription
nodeId *stringNode ID in colon format e.g. '4029:12345'
indicesarrayZero-based indices of reactions to remove. Omit or pass [] to remove all.

rename_node

Rename a single node by ID. Returns the updated node with its new name. Use batch_rename_nodes to rename multiple nodes at once or to apply find/replace patterns across many nodes.

ParameterTypeDescription
name *stringNew name for the node. Figma supports slash-separated path notation e.g. 'Icons/Arrow/Left' to organise nodes in component panels.
nodeId *stringNode ID in colon format e.g. '4029:12345'

rename_page

Rename an existing page in the Figma document.

ParameterTypeDescription
newName *stringNew name for the page
pageIdstringPage node ID in colon format e.g. '0:2'
pageNamestringCurrent page name to find (alternative to pageId)

reorder_nodes

Change the z-order (layer stack position) of one or more nodes.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
order *stringOrder operation: bringToFront, sendToBack, bringForward, or sendBackward

reparent_nodes

Move one or more nodes to a different parent frame, group, or section.

ParameterTypeDescription
nodeIds *arrayNode IDs to move in colon format e.g. ['4029:12345']
parentId *stringTarget parent node ID in colon format e.g. '4029:99'

resize_nodes

Resize one or more nodes. The same width/height is applied to every node in the list independently. Provide width, height, or both.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
heightnumberNew height in pixels
widthnumberNew width in pixels

rotate_nodes

Rotate one or more nodes to an absolute angle in degrees.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
rotation *numberRotation angle in degrees (positive = counter-clockwise in Figma)

save_screenshots

Export screenshots for multiple nodes and write them to the local filesystem. Returns file metadata (path, size, dimensions) — no base64 in the response. Use get_screenshot instead when you need the image data in memory.

ParameterTypeDescription
items *arrayList of {nodeId, outputPath, format?, scale?} objects
formatstringDefault export format: PNG (default), SVG, JPG, or PDF
scalenumberDefault export scale for raster formats (default 2)

scan_nodes_by_types

Find all nodes of specific types in a subtree, regardless of name. Use search_nodes instead when you need to filter by name.

ParameterTypeDescription
nodeId *stringRoot node ID to scan from, colon format e.g. '4029:12345'
types *arrayNode types to find e.g. ['FRAME', 'COMPONENT', 'INSTANCE']

scan_text_nodes

Scan all TEXT nodes in a subtree and return their content. Shorthand for scan_nodes_by_types with ['TEXT'] — use when you only need text copy from a component or frame.

ParameterTypeDescription
nodeId *stringRoot node ID to scan from, colon format e.g. '4029:12345'

search_nodes

Search for nodes by name substring and/or type within a subtree. Use this when you know (part of) the node name. Use scan_nodes_by_types when you want all nodes of a type regardless of name.

ParameterTypeDescription
query *stringName substring to match (case-insensitive)
limitnumberMaximum results to return (default: 50)
nodeIdstringScope search to this subtree (default: current page), colon format e.g. '4029:12345'
typesarrayFilter by Figma node type e.g. ['TEXT', 'FRAME', 'COMPONENT']

set_auto_layout

Set or update auto-layout (flex) properties on an existing frame.

ParameterTypeDescription
nodeId *stringFrame node ID in colon format e.g. '4029:12345'
counterAxisAlignItemsstringCross-axis alignment: MIN, CENTER, MAX, or BASELINE
counterAxisSizingModestringCross-axis sizing: FIXED or AUTO (hug)
counterAxisSpacingnumberGap between wrapped rows/columns (only when layoutWrap is WRAP)
itemSpacingnumberGap between children
layoutModestringAuto-layout direction: HORIZONTAL, VERTICAL, or NONE
layoutWrapstringWrap behaviour: NO_WRAP or WRAP
paddingBottomnumberBottom padding
paddingLeftnumberLeft padding
paddingRightnumberRight padding
paddingTopnumberTop padding
primaryAxisAlignItemsstringMain-axis alignment: MIN, CENTER, MAX, or SPACE_BETWEEN
primaryAxisSizingModestringMain-axis sizing: FIXED or AUTO (hug)

set_blend_mode

Set the blend mode of one or more nodes (e.g. MULTIPLY, SCREEN, OVERLAY).

ParameterTypeDescription
blendMode *stringBlend mode: NORMAL, MULTIPLY, SCREEN, OVERLAY, DARKEN, LIGHTEN, COLOR_DODGE, COLOR_BURN, HARD_LIGHT, SOFT_LIGHT, DIFFERENCE, EXCLUSION, HUE, SATURATION, COLOR, LUMINOSITY, PASS_THROUGH
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']

set_constraints

Set layout constraints (pinning behaviour) on one or more nodes relative to their parent.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
horizontalstringHorizontal constraint: MIN (left), MAX (right), CENTER, STRETCH, or SCALE
verticalstringVertical constraint: MIN (top), MAX (bottom), CENTER, STRETCH, or SCALE

set_corner_radius

Set corner radius on one or more nodes. Provide a uniform cornerRadius or individual per-corner values.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
bottomLeftRadiusnumberBottom-left corner radius
bottomRightRadiusnumberBottom-right corner radius
cornerRadiusnumberUniform corner radius applied to all corners
topLeftRadiusnumberTop-left corner radius
topRightRadiusnumberTop-right corner radius

set_effects

Apply one or more effects (drop shadow, inner shadow, layer blur, background blur) directly to a node. Replaces all existing effects. Pass an empty array to clear all effects.

ParameterTypeDescription
effects *arrayArray of effect objects. Each has: type (DROP_SHADOW | INNER_SHADOW | LAYER_BLUR | BACKGROUND_BLUR), radius, color (hex, shadows only), opacity (0–1, shadows only), offsetX, offsetY (shadows only),…
nodeId *stringTarget node ID in colon format e.g. 4029:12345

set_fills

Set the fill color on a single node (takes one nodeId, not an array). Use mode='append' to stack a new fill on top of existing fills instead of replacing them.

ParameterTypeDescription
color *stringFill color as hex: #RRGGBB e.g. #FF5733 or #RRGGBBAA e.g. #FF573380 for 50% alpha
nodeId *stringNode ID in colon format e.g. '4029:12345'
modestring'replace' (default) overwrites all existing fills; 'append' stacks this fill on top of existing ones
opacitynumberFill opacity 0–1 (default 1). Combines multiplicatively with any alpha in the color hex.

set_opacity

Set the opacity of one or more nodes (0 = fully transparent, 1 = fully opaque).

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
opacity *numberOpacity value between 0 and 1

set_reactions

Set prototype reactions on a node. Use mode "replace" (default) to overwrite all reactions, or "append" to add to existing ones. Supported triggers: ON_CLICK, ON_HOVER, ON_PRESS, ON_DRAG, AFTER_TIMEOUT, MOUSE_ENTER, MOUSE_LEAVE, MOUSE_UP, MOUSE_DOWN Supported action types: NODE (navigation), BACK, CLOSE, URL NODE navigation values: NAVIGATE, OVERLAY, SCROLL_TO, SWAP, CHANGE_TO Transition types: DISSOLVE, SMART_ANIMATE, MOVE_IN, MOVE_OUT, PUSH, SLIDE_IN, SLIDE_OUT DISSOLVE / SMART_ANIMATE: {"type":"DISSOLVE","duration":0.3,"easing":{"type":"EASE_OUT"}} Directional (PUSH, MOVE_IN, MOVE_OU…

ParameterTypeDescription
nodeId *stringNode ID in colon format e.g. '4029:12345'
reactions *arrayArray of reaction objects. Each has a 'trigger' and an 'actions' array (plural) of Action objects.
modestring"replace" (default) overwrites all existing reactions; "append" adds to them

set_strokes

Set the stroke color and weight on a single node (takes one nodeId, not an array). Use mode='append' to stack a new stroke on top of existing strokes instead of replacing them.

ParameterTypeDescription
color *stringStroke color as hex e.g. #000000
nodeId *stringNode ID in colon format e.g. '4029:12345'
modestring'replace' (default) overwrites all strokes; 'append' stacks on top of existing strokes
strokeWeightnumberStroke weight in pixels (default 1)

set_text

Update the text content of an existing TEXT node.

ParameterTypeDescription
nodeId *stringTEXT node ID in colon format e.g. '4029:12345'
text *stringNew text content

set_variable_value

Set a variable's value for a specific mode.

ParameterTypeDescription
modeId *stringMode ID within the collection
value *stringValue to set. COLOR: hex e.g. #FF5733. FLOAT: number e.g. 16. STRING: text. BOOLEAN: true or false.
variableId *stringVariable ID

set_visible

Show or hide one or more nodes by setting their visibility.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']
visible *booleantrue to show the node, false to hide it

swap_component

Swap the main component of an existing INSTANCE node, replacing it with a different component while keeping position and size.

ParameterTypeDescription
componentId *stringTarget COMPONENT node ID in colon format (from get_local_components)
nodeId *stringINSTANCE node ID in colon format e.g. 4029:12345

ungroup_nodes

Ungroup one or more GROUP nodes, moving their children to the parent and removing the group.

ParameterTypeDescription
nodeIds *arrayGROUP node IDs in colon format e.g. ['4029:12345']

unlock_nodes

Unlock one or more nodes, allowing them to be edited again.

ParameterTypeDescription
nodeIds *arrayNode IDs in colon format e.g. ['4029:12345']

update_paint_style

Update an existing paint style's name, color, or description. Only paint styles support in-place updates — to modify text, effect, or grid styles, use delete_style and recreate them.

ParameterTypeDescription
styleId *stringPaint style ID
colorstringNew fill color as hex e.g. #FF5733
descriptionstringNew style description
namestringNew style name