figma-mcp-go

v0.8.0
io.github.tunglt1810/figma-mcp-go Checked 16 hours ago Published 5 days ago

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

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

apply_style_to_node

Apply a local style to a node.

ParameterTypeDescription
nodeId *stringTarget node ID
styleId *stringStyle ID from get_styles
targetstringPaint styles: fill (default) or stroke

batch_execute_pipeline

Run write steps in order. A step can use earlier results through $variables. With stop_on_error, a failure undoes created nodes and changed properties, but not deletes, group/ungroup, detach, reparent, or steps that target nodes by name.

ParameterTypeDescription
steps *arraySteps in order: {id, action, params, export_vars?}
stop_on_errorbooleanStop and undo on error (default true)

batch_rename_nodes

Rename nodes: set `name`, or find/replace (regex allowed), or prefix/suffix. `name` cannot mix with the others.

ParameterTypeDescription
nodeIds *arrayNode IDs
findstringText or regex to find in names
namestringNew name for all nodes. A slash makes a group, e.g. 'Icons/Arrow'.
prefixstringAdd to start of name
regexFlagsstringRegex flags (default 'g')
replacestringReplacement. find requires it.
suffixstringAdd to end of name
useRegexbooleanfind is a regex (default false)

boolean_operation

Combine 2+ shapes (same parent): UNION, SUBTRACT (cut the rest from the first), INTERSECT, or EXCLUDE. Pipeline rollback cannot undo it.

ParameterTypeDescription
nodeIds *arrayShape IDs. Order matters for SUBTRACT.
operation *stringOperation
namestringResult name

clone_node

Copy a node, optionally to a new position or parent.

ParameterTypeDescription
nodeId *stringSource node ID
parentIdstringParent (default: same as source)
xnumberX of the copy
ynumberY of the copy

combine_as_variants

Combine 2+ components (same parent) into a variant set. Add VARIANT properties with manage_component_properties.

ParameterTypeDescription
nodeIds *arrayCOMPONENT node IDs
namestringSet name

create_component

Turn a FRAME into a COMPONENT, in place.

ParameterTypeDescription
nodeId *stringFRAME node ID to convert
namestringComponent name (default: frame name)

create_component_instance

Create an instance of a local (componentId) or library (componentKey) component. A component set uses its default variant.

ParameterTypeDescription
componentIdstringLocal component or set ID (preferred)
componentKeystringLibrary component or set key
parentIdstringParent ID (default: current page)
xnumberX (default: center of view)
ynumberY

create_connector

Create a connector line. This tool operates only in a FigJam file.

ParameterTypeDescription
endNodeIdstringEnd node ID
endPositionobjectEnd {x, y}
lineTypestringSTRAIGHT or ELBOW
startNodeIdstringStart node ID
startPositionobjectStart {x, y}

create_node

Create a shape. Args per `type`: FRAME: width, height, fillColor, auto layout args. RECTANGLE: width, height, fillColor, cornerRadius. ELLIPSE: width, height, fillColor, startAngle, endAngle, innerRadiusRatio. STAR: pointCount, outerRadius, innerRadius, fillColor, cornerRadius. POLYGON: pointCount, radius, fillColor, cornerRadius. LINE: length, rotation, strokeColor, strokeWeight. SECTION: width, height (no parent). All: x, y, name. The tool rejects other args. For text, use create_text.

ParameterTypeDescription
type *stringFRAME, RECTANGLE, ELLIPSE, STAR, POLYGON, LINE, or SECTION
clipsContentbooleanClip content
cornerRadiusnumberCorner radius
counterAxisAlignItemsstringCross axis align: MIN, CENTER, MAX, BASELINE
counterAxisSizingModestringCross axis size: FIXED or AUTO (hug)
counterAxisSpacingnumberGap between wrapped rows (with WRAP)
endAnglenumberArc end, radians (default full circle)
fillColorstringFill hex e.g. #FF5733
heightnumberHeight (default 100)
innerRadiusnumberSTAR inner radius (default 0.38 × outer)
innerRadiusRationumberHole size 0-1, for rings (default 0)
itemReverseZIndexbooleanPut first child on top
itemSpacingnumberGap between children
layoutAlignstringThis node's cross axis align in the parent's auto layout
layoutGrownumber1 = grow to fill the parent's main axis, 0 = keep size
layoutModestringAuto layout: HORIZONTAL, VERTICAL, or NONE
layoutPositioningstringIn the parent's auto layout: AUTO (in flow) or ABSOLUTE (free, at x/y)
layoutSizingHorizontalstringWidth mode: FIXED, HUG (fit content), or FILL (fill parent). Prefer this over *AxisSizingMode. HUG needs auto layout on this node. FILL needs auto layout on its parent.
layoutSizingVerticalstringHeight mode: FIXED, HUG, or FILL. The rules are the same as for layoutSizingHorizontal.
layoutWrapstringNO_WRAP or WRAP
lengthnumberLINE length (default 100)
maxHeightnumberMax height. null removes it.
maxWidthnumberMax width. null removes it.
minHeightnumberMin height. null removes it.
minWidthnumberMin width. null removes it.
namestringLayer name
outerRadiusnumberSTAR outer radius (default 50)
paddingBottomnumberBottom padding
paddingLeftnumberLeft padding
paddingRightnumberRight padding
paddingTopnumberTop padding
parentIdstringParent node ID (default: current page)
pointCountnumberSTAR points (default 5) or POLYGON sides (default 3)
primaryAxisAlignItemsstringMain axis align: MIN, CENTER, MAX, SPACE_BETWEEN
primaryAxisSizingModestringMain axis size: FIXED or AUTO (hug)
radiusnumberPOLYGON radius (default 50)
rotationnumberLINE rotation in degrees
startAnglenumberArc start, radians (default 0)
strokeColorstringLINE color hex
strokeWeightnumberLINE width (default 1)
strokesIncludedInLayoutbooleanInclude strokes in layout size
widthnumberWidth (default 100)
xnumberX (default 0)
ynumberY (default 0)

create_style

Create a local style. Args per `type`: PAINT: color. TEXT: fontSize, fontFamily, fontStyle, textDecoration, lineHeightValue/Unit, letterSpacingValue/Unit. EFFECT: effectType, color, opacity, radius, offsetX, offsetY, spread. GRID: pattern, count, gutterSize, offset, alignment, sectionSize, color, opacity. The tool returns the style ID. Apply the style with apply_style_to_node.

ParameterTypeDescription
name *stringStyle name. A slash makes a group, e.g. 'Brand/Primary'.
type *stringPAINT, TEXT, EFFECT, or GRID
alignmentstringSTRETCH (default), CENTER, MIN, MAX
colorstringHex. PAINT: required. EFFECT: default #000000. GRID: default #FF0000.
countnumberColumns/rows count (default 12)
descriptionstringDescription
effectTypestringDROP_SHADOW (default), INNER_SHADOW, LAYER_BLUR, BACKGROUND_BLUR
fontFamilystringDefault Inter
fontSizenumberDefault 16
fontStylestringe.g. 'Bold' (default Regular)
gutterSizenumberGutter (default 16)
letterSpacingUnitstringPIXELS (default) or PERCENT
letterSpacingValuenumberLetter spacing
lineHeightUnitstringPIXELS (default) or PERCENT
lineHeightValuenumberLine height
offsetnumberMargin (default 0)
offsetXnumberDefault 0
offsetYnumberDefault 4
opacitynumber0-1. EFFECT default 0.25, GRID default 0.1.
patternstringGRID (default), COLUMNS, ROWS
radiusnumberBlur (default 8 shadow, 4 blur)
sectionSizenumberCell size (default 8)
spreadnumberDefault 0
textDecorationstringNONE (default), UNDERLINE, STRIKETHROUGH

create_text

Create a text node (loads the font). To edit text, use set_text.

ParameterTypeDescription
text *stringText
fillColorstringText color hex (default black)
fontFamilystringFont family e.g. 'Roboto' (default Inter)
fontSizenumberFont size (default 14)
fontStylestringFont style e.g. 'Bold' (default Regular). The style must exist for the family.
namestringLayer name (default: the text)
parentIdstringParent node ID (default: current page)
xnumberX (default 0)
ynumberY (default 0)

create_vector

Create a vector from SVG markup (e.g. an icon). Several paths become a frame of vectors.

ParameterTypeDescription
svg *stringSVG markup
fillColorstringFill color hex
heightnumberHeight
parentIdstringParent ID (default: current page)
widthnumberWidth
xnumberX (default 0)
ynumberY (default 0)

delete_nodes

Delete nodes. You cannot undo this from here.

ParameterTypeDescription
nodeIds *arrayNode IDs to delete

delete_style

Delete a style by ID.

ParameterTypeDescription
styleId *stringStyle ID

detach_instance

Detach instances into plain frames (same look, no component link).

ParameterTypeDescription
nodeIds *arrayINSTANCE node IDs

export_frames_to_pdf

Export frames as one PDF, one page per frame, in order.

ParameterTypeDescription
nodeIds *arrayFrame IDs, in page order
outputPath *stringPath of the .pdf file, inside the working directory

export_screenshots

Export nodes as images. The tool saves items with outputPath to file. It returns the other items (PNG/JPG as image, SVG as text, PDF as base64). Without items, the tool exports the selection. Prefer outputPath if you only need the file.

ParameterTypeDescription
formatstringDefault format: PNG (default), SVG, JPG, PDF
itemsarray{nodeId, outputPath?, format?, scale?}. Omit to export the selection.
scalenumberDefault scale for PNG/JPG (2 for files, 1 when returned)

export_tokens

Export variables and paint styles as JSON or CSS variables.

ParameterTypeDescription
formatstringjson (default) or css

find_replace_text

Find and replace text in TEXT nodes, on the current page or inside nodeId.

ParameterTypeDescription
find *stringText or regex to find
replace *stringReplacement. "" deletes the text.
nodeIdstringSearch inside this node (default: current page)
regexFlagsstringRegex flags (default 'g')
useRegexbooleanfind is a regex (default false)

flatten_nodes

Merge nodes (same parent) into one vector. Pipeline rollback cannot undo it.

ParameterTypeDescription
nodeIds *arrayNode IDs
namestringResult name

get_annotations

Get Dev Mode annotations on the page, or on one node and its children.

ParameterTypeDescription
nodeIdstringOnly this node and its children

get_document

Get the node tree of the selection, page, or file (`scope`). The tool returns {fileName, scope, currentPage, nodes}. The tool stops at 500 nodes by default. It then sets `truncated`, and nodes with hidden children show `childCount`.

ParameterTypeDescription
dedupe_componentsbooleanShow instances in short form (mainComponentId, componentProperties, overrides) and list each component once in `componentDefs`. This saves tokens on screens with many instances.
depthnumberLevels below each root. 0 = root only. Default 2 for selection, no limit otherwise.
detailstringminimal: id/name/type/bounds. compact: + fills/strokes/opacity. full (default): everything. Use lower levels for big files.
maxNodesnumberMax nodes (default 500).
scopestringpage (default): current page. document: every page, one shared maxNodes limit. selection: selected nodes, 2 levels deep by default, or the page if the selection is empty. Use selection to explore.

get_fonts

List fonts used on the current page, most used first.

get_image_bytes

Get the original image files in nodes' image fills, as base64. The tool returns each image once. Nodes without images go in `skipped`. To see how a node looks, use export_screenshots.

ParameterTypeDescription
nodeIds *arrayNode IDs carrying image fills

get_instance_overrides

Get an instance's component properties with type and value. Use this tool before set_instance_overrides.

ParameterTypeDescription
nodeId *stringINSTANCE node ID

get_local_components

Get all components in the file.

get_metadata

Get file name, current page, and all pages (ID, name). The tool loads no node trees.

get_nodes_info

Get full node details by ID. The tool returns {nodes}, plus globalVars.styles for repeated fills/strokes. Unknown IDs go in `missing`. The tool stops at 500 nodes by default. This count includes the requested nodes. It then sets `truncated` and `childCount`.

ParameterTypeDescription
nodeIds *arrayNode IDs
depthnumberLevels below each node. 0 = the nodes only. Default no limit.
maxNodesnumberMax nodes in the result (default 500).

get_reactions

Get a node's prototype reactions (trigger + actions). Edit them with set_reactions.

ParameterTypeDescription
nodeId *stringNode ID

get_selection

Get selected nodes, or nodes pinned in the plugin panel. The result is [] if there are none. For detail, use get_nodes_info.

ParameterTypeDescription
sourcestringselection (default): the nodes selected now. It changes when the user clicks. pinned: the set saved in the panel. It stays the same across calls.

get_styles

Get local styles (paint, text, effect, grid) with ID, name, type, values. For variables, use get_variable_defs.

get_variable_defs

Get local variables (design tokens): collections, modes, values.

get_viewport

Get viewport center, zoom, and visible bounds.

group_nodes

Group 2+ nodes that share a parent.

ParameterTypeDescription
nodeIds *arrayNode IDs (2+)
namestringGroup name

import_image

Add an image from a URL (preferred) or base64, as a rectangle sized to the image, or as nodeId's fill.

ParameterTypeDescription
cropobjectPart of the image to show, {x, y, width, height} each 0-1. This sets scaleMode to CROP.
filtersobjectAdjustments, each -1 to 1 (0 = none)
heightnumberHeight (default: image size, max 1000)
imageDatastringBase64 PNG or JPG, if no URL
imageUrlstringImage URL
modestringWith nodeId: replace fills (default) or append
namestringNode name
nodeIdstringFill this node with the image instead of making a rectangle
parentIdstringParent node ID (default: current page)
scaleModestringFILL (default), FIT, CROP, or TILE
widthnumberWidth (default: image size, max 1000)
xnumberX (default 0)
ynumberY (default 0)

manage_component_properties

Add, edit, delete, or bind component properties. bind links a layer: BOOLEAN shows/hides it, TEXT sets its text, INSTANCE_SWAP swaps it. Names work without the '#1:2' suffix.

ParameterTypeDescription
action *stringadd, edit, delete, or bind
nodeId *stringCOMPONENT or COMPONENT_SET node ID
defaultValueDefault, for add: boolean, string, or component ID (INSTANCE_SWAP)
namestringName (add), or new name (edit)
preferredValuesarrayINSTANCE_SWAP: components shown first
propertystringProperty to change, e.g. 'Size' or 'Size#1:2'
targetNodeIdstringbind: layer inside the component
typestringType, for add. VARIANT needs a COMPONENT_SET.

manage_page

Add, delete, rename, or go to a page. Args per `action`: add: name, index. delete, navigate: pageId or pageName. rename: pageId or pageName, newName. List pages with get_metadata.

ParameterTypeDescription
action *stringadd, delete, rename, or navigate
indexnumberPosition, 0 = first (default last)
namestringNew page name (default 'Page')
newNamestringNew name
pageIdstringPage ID
pageNamestringExact page name, instead of pageId

manage_plugin_data

Store string key/values on a node, saved in the file. Use JSON for complex values.

ParameterTypeDescription
action *stringget, set, delete, or keys (list)
nodeId *stringNode ID
keystringKey (not for keys)
namespacestringDefault 'figma-mcp-go'
valuestringValue, for set

manage_variable

Manage variables (design tokens). Args per `action`: create_collection: name, initialModeName. add_mode: collectionId, modeName. create: name, collectionId, type, value. set_value: variableId, modeId, value. delete: variableId, or collectionId (deletes all its variables). bind: nodeId, variableId, field (node property to link). Get IDs from get_variable_defs. Free plan: 1 mode per collection. If add_mode fails with 'Limited to 1 modes only', do not retry. Put the mode in the name (e.g. 'light/bg') and tell the user multi-mode needs a paid plan.

ParameterTypeDescription
action *stringcreate_collection, add_mode, create, set_value, delete, or bind
collectionIdstringCollection ID
fieldstringProperty to bind. COLOR: fillColor, strokeColor. BOOLEAN: visible. FLOAT: opacity, rotation, width, height, cornerRadius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, strokeWeig…
initialModeNamestringFirst mode name (default 'Mode 1')
modeIdstringMode ID
modeNamestringNew mode name e.g. 'Dark'
namestringCollection or variable name. A slash makes a group, e.g. 'Color/Primary'.
nodeIdstringbind: the node
typestringCOLOR, FLOAT, STRING, or BOOLEAN
valuestringCOLOR: hex. FLOAT: number. STRING: text. BOOLEAN: true/false. For create, sets the first mode.
variableIdstringVariable ID

outline_stroke

Turn each node's stroke into a filled shape. Nodes without a stroke go in `skipped`.

ParameterTypeDescription
nodeIds *arrayNode IDs

reparent_nodes

Move nodes into another frame, group, or section.

ParameterTypeDescription
nodeIds *arrayNode IDs to move
parentId *stringNew parent ID

save_version_checkpoint

Save a named version in file history, before big or risky changes. This tool operates only in a Design file.

ParameterTypeDescription
title *stringVersion name
descriptionstringNote

search_nodes

Find nodes by name, type, or both, on the current page by default. The tool returns up to `limit` nodes (default 50). It sets `truncated` if there are more.

ParameterTypeDescription
includeHiddenbooleanSearch hidden nodes (default true). false skips hidden nodes and their children.
includeTextbooleanAdd characters, fontSize and fontName to TEXT results (default false).
limitnumberMax results (default 50)
nodeIdstringSearch only inside this node. This overrides scope.
querystringText to find in node names (case-insensitive). Omit to match all nodes of `types`.
scopestringpage (default) or document (every page). A page search does not look at other pages.
typesarrayNode types e.g. ['TEXT', 'FRAME']

set_annotations

Set Dev Mode annotations on nodes ([] clears them). The tool needs a paid Dev Mode seat.

ParameterTypeDescription
annotations *arraye.g. [{"label": "Main Button"}]. [] clears them.
nodeIds *arrayNode IDs

set_auto_layout

Set auto layout (flexbox) on frames, components or instances: direction, padding, gap, align, sizing (HUG/FILL with layoutSizing*). layoutPositioning, layoutAlign, layoutGrow set how a node sits in its parent. Results are per node.

ParameterTypeDescription
nodeIds *arrayFrame, component, or instance IDs
clipsContentbooleanClip content
counterAxisAlignItemsstringCross axis align: MIN, CENTER, MAX, BASELINE
counterAxisSizingModestringCross axis size: FIXED or AUTO (hug)
counterAxisSpacingnumberGap between wrapped rows (with WRAP)
itemReverseZIndexbooleanPut first child on top
itemSpacingnumberGap between children
layoutAlignstringThis node's cross axis align in the parent's auto layout
layoutGrownumber1 = grow to fill the parent's main axis, 0 = keep size
layoutModestringAuto layout: HORIZONTAL, VERTICAL, or NONE
layoutPositioningstringIn the parent's auto layout: AUTO (in flow) or ABSOLUTE (free, at x/y)
layoutSizingHorizontalstringWidth mode: FIXED, HUG (fit content), or FILL (fill parent). Prefer this over *AxisSizingMode. HUG needs auto layout on this node. FILL needs auto layout on its parent.
layoutSizingVerticalstringHeight mode: FIXED, HUG, or FILL. The rules are the same as for layoutSizingHorizontal.
layoutWrapstringNO_WRAP or WRAP
maxHeightnumberMax height. null removes it.
maxWidthnumberMax width. null removes it.
minHeightnumberMin height. null removes it.
minWidthnumberMin width. null removes it.
paddingBottomnumberBottom padding
paddingLeftnumberLeft padding
paddingRightnumberRight padding
paddingTopnumberTop padding
primaryAxisAlignItemsstringMain axis align: MIN, CENTER, MAX, SPACE_BETWEEN
primaryAxisSizingModestringMain axis size: FIXED or AUTO (hug)
strokesIncludedInLayoutbooleanInclude strokes in layout size

set_codegen_result

Save code on a node for Dev Mode's Code panel. The whole team sees it. Code on a component shows on its instances. [] removes the code.

ParameterTypeDescription
blocks *arrayOne tab per block
nodeId *stringNode ID

set_effects

Replace a node's effects ([] clears them), in the shape of get_nodes_info's styles.effects.

ParameterTypeDescription
effects *arrayEffects by `type`. DROP_SHADOW / INNER_SHADOW: color, opacity, offsetX, offsetY, radius, spread, blendMode, and showShadowBehindNode on drop shadows. LAYER_BLUR / BACKGROUND_BLUR: radius. blurType PRO…
nodeId *stringTarget node ID

set_export_settings

Set a node's Export presets. This tool does not export. To export, use export_screenshots.

ParameterTypeDescription
nodeIds *arrayNode IDs
settings *arrayPresets in order. [] clears them.

set_instance_overrides

Set an instance's component properties. The tool fails on unknown names or wrong types.

ParameterTypeDescription
nodeId *stringINSTANCE node ID
properties *objectName to value e.g. {"Size": "Large", "Show Icon": true}

set_layout_grids

Set layout grids (columns, rows, square) on frames. [] removes them.

ParameterTypeDescription
grids *arrayGrids. [] removes all.
nodeIds *arrayFrame, component, or section IDs
modestringreplace (default) or append

set_node_properties

Set node properties: position, size, radius, visibility, lock, opacity, rotation, blend, constraints, z-order, mask, stroke. Pass only what changes. Results are per node.

ParameterTypeDescription
nodeIds *arrayNode IDs
blendModestringe.g. NORMAL, MULTIPLY, SCREEN
bottomLeftRadiusnumberBottom left radius
bottomRightRadiusnumberBottom right radius
constraintsobject{horizontal, vertical}: MIN, MAX, CENTER, STRETCH, or SCALE
cornerRadiusnumberRadius for all corners
dashPatternarrayDash and gap e.g. [4, 2]. [] = solid.
heightnumberHeight
isMaskbooleanUse as mask for the layers above it
lockedbooleanLock or unlock
maskTypestringALPHA, VECTOR, or LUMINANCE
opacitynumberOpacity 0-1
orderstringLayer order: bringToFront, sendToBack, bringForward, sendBackward
rotationnumberRotation in degrees
strokeAlignstringStroke position
strokeCapstringLine ends: NONE, ROUND, SQUARE, ARROW_LINES, ARROW_EQUILATERAL
strokeJoinstringCorner style
strokeMiterLimitnumberMiter limit (default 4)
strokeWeightnumberStroke width
topLeftRadiusnumberTop left radius
topRightRadiusnumberTop right radius
visiblebooleanShow or hide
widthnumberWidth
xnumberAbsolute X (not an offset)
ynumberAbsolute Y (not an offset)

set_paint

Set a node's fill or stroke. SOLID: color, opacity. GRADIENT_*: stops, geometry, opacity.

ParameterTypeDescription
nodeId *stringNode ID
type *stringSOLID, GRADIENT_LINEAR, GRADIENT_RADIAL, GRADIENT_ANGULAR, or GRADIENT_DIAMOND
colorstringSOLID: hex #RRGGBB or #RRGGBBAA
geometryGRADIENT: in percentX/percentY. Linear: start, end, angle. Others: center, radius, rotation.
modestringreplace (default) or append on top
opacitynumberOpacity 0-1 (default 1), multiplied with hex alpha
stopsGRADIENT: [{position: 0-1, color: hex}]
strokeWeightnumberStroke width (default 1), stroke only
targetstringfill (default) or stroke

set_reactions

Set or remove prototype reactions. mode: replace (default) or append. To remove, pass removeIndices (from get_reactions, [] = all), not reactions. Reaction: {"trigger":{"type":...},"actions":[...]}. Triggers: ON_CLICK, ON_HOVER, ON_PRESS, ON_DRAG, AFTER_TIMEOUT (+timeout ms), MOUSE_ENTER, MOUSE_LEAVE, MOUSE_UP, MOUSE_DOWN. Actions: NODE (+destinationId, navigation NAVIGATE|OVERLAY|SCROLL_TO|SWAP|CHANGE_TO, transition, preserveScrollPosition), BACK, CLOSE, URL (+url). Transitions: DISSOLVE, SMART_ANIMATE, or PUSH, MOVE_IN, MOVE_OUT, SLIDE_IN, SLIDE_OUT (these also need direction LEFT|RIGHT|TOP…

ParameterTypeDescription
nodeId *stringNode ID
modestringreplace (default) or append
reactionsarrayReactions: {trigger, actions}
removeIndicesarrayIndices to remove. [] removes all. Do not use with reactions.

set_selection

Select and zoom to nodes (switches page if needed) to show the user your work. No IDs clears the selection. Nodes must share a page.

ParameterTypeDescription
nodeIdsarrayNode IDs. An empty list clears the selection.
selectbooleanChange selection (default true). false + zoom only moves the view.
zoombooleanZoom to fit (default true)

set_text

Change a TEXT node's text and whole-node settings (resize, truncation, alignment, spacing). To style parts of the text, use set_text_ranges.

ParameterTypeDescription
nodeId *stringTEXT node ID
maxLinesnumberMax lines (needs ENDING). null removes it.
paragraphIndentnumberFirst line indent
paragraphSpacingnumberSpace between paragraphs
textstringNew text
textAlignHorizontalstringHorizontal align
textAlignVerticalstringVertical align
textAutoResizestringNONE (fixed), HEIGHT (grow down), WIDTH_AND_HEIGHT (hug), or TRUNCATE
textTruncationstringENDING adds … on overflow

set_text_ranges

Style parts of a TEXT node (bold, color, link, list). Each range is characters [start, end). Later ranges win on overlap. Omitted properties stay.

ParameterTypeDescription
nodeId *stringTEXT node ID
ranges *arrayRanges to style. Each range needs start and end.

swap_component

Swap an instance to another component, keeping position and size.

ParameterTypeDescription
nodeId *stringINSTANCE node ID
componentIdstringLocal component or set ID (preferred)
componentKeystringLibrary component or set key

ungroup_nodes

Ungroup GROUP nodes. The children move to the parent.

ParameterTypeDescription
nodeIds *arrayGROUP node IDs

update_paint_style

Update a paint style's name, color, or description. For other types, delete the style and create it again.

ParameterTypeDescription
styleId *stringPaint style ID
colorstringNew color hex
descriptionstringNew style description
namestringNew style name