figma-mcp-bridge

v0.0.29
@gethopp/figma-mcp-bridge Checked 18 hours ago Published 6 days ago

MCP server that bridges Figma plugin data to AI tools without hitting API rate limits

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

list_files

List all currently connected Figma/FigJam files. Returns fileKey and fileName for each. Use the fileKey to target a specific file in other tools.

get_document

Get the current Figma/FigJam page document tree. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_selection

Get the currently selected nodes in Figma/FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_layout_tree

Read absolute node transforms and layout bounds for a capture root. Separate screenshot calls are non-atomic.

ParameterTypeDescription
rootId *string
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
maxNodesinteger

get_node

Get a specific Figma/FigJam node by ID. Accepts top-level IDs like '4029:12345' and instance-child IDs like 'I12740:17806;12740:17793'. Never use hyphens. Pass includePrototype: true to also get the prototype interactions on the node and its descendants. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe node ID to fetch. Accepts top-level IDs like '4029:12345' and instance-child IDs like 'I12740:17806;12740:17793'.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
includePrototypebooleanWhen true, adds a `prototype` field with the reactions on this node and its descendants (the scan get_prototype_connections returns). Not available in FigJam.

get_prototype_connections

Read-only. List the prototype interactions on a node and all its descendants, including instance sublayers. Each reaction is Figma's own trigger and actions (navigate/swap/overlay/scroll-to/change-to, back, close, URL, set variable/mode, conditional blocks, media), with each destination resolved to its name, screen, and page, and variables and modes resolved to names. Also returns the page's flow starting points. Not available in FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
includeEmptybooleanAlso list nodes that support reactions but have none (default false).
maxNodesintegerStop after inspecting this many nodes (default 5000); `truncated` reports it.
nodeIdstringRoot to scan (a page, screen, button, or instance). The node and all descendants, including instance sublayers, are inspected. Omit to scan the current page.

trace_prototype_flow

Read-only. Follow prototype navigation breadth-first from a screen: returns the screens reached (with depth and the node that reached them) and every interaction edge with its source node, trigger, action, enclosing conditional branches, and destination screen. Screens reached again are marked as revisits; unresolvable destinations are listed. Not available in FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringScreen (or any node inside one) to start from. Screen-to-screen navigation is followed breadth-first.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
maxNodesPerScreenintegerMaximum nodes to inspect on each screen (default 5000).
maxScreensintegerMaximum screens to expand (default 25); the rest are listed in `pending`.

get_styles

Get all local styles in the document. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_metadata

Get metadata about the current Figma/FigJam document including file name, pages, and current page info. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_design_context

Get the design context for the current selection or page. Returns a summarized tree structure optimized for understanding the current design context. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
depthnumberHow many levels deep to traverse the node tree (default 2)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_variable_defs

Get all local variable definitions including variable collections, modes, and variable values. Variables are Figma's system for design tokens (colors, numbers, strings, booleans). When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_screenshot

Export a screenshot of the selected nodes or specific nodes by ID. Returns base64-encoded image data. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
clipbooleanWhen true, export using Figma's absolute node bounds (REST use_absolute_bounds / plugin useAbsoluteBounds) so PNGs are clipped to the node's logical bounds
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
formatstringExport format: PNG (default) or SVG or JPG or PDF
nodeIdsarrayOptional list of node IDs to export. Accepts top-level IDs like '4029:12345' and instance-child IDs like 'I12740:17806;12740:17793'. Never use hyphens. If empty, exports the current selection.
scalenumberExport scale for raster formats (default 2)

set_node_visibility

Show or hide specific Figma nodes. Returns previous visibility for each node so you can restore them after. Useful for isolating a single layer before exporting: hide all siblings, export the frame, then restore visibility.

ParameterTypeDescription
items *arrayList of nodes with their target visibility
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

set_text_content

Update the contents of a text node. Works on TEXT nodes plus FigJam STICKY and SHAPE_WITH_TEXT nodes (their text sublayer). The plugin loads the node's fonts before applying the new text. Accepts either text or characters. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe text node ID to update
charactersstringAlias for text, matching create_text. Supply one of the two.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
textstringThe new text content. Required unless characters is given.

set_text_properties

Patch common text properties such as font family/style, size, line height, letter spacing, and fill color, plus alignment, auto-resize, and bounds on TEXT nodes. Also targets FigJam STICKY and SHAPE_WITH_TEXT text sublayers (alignment/auto-resize are TEXT-only). When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe text node ID to update
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional text fill color as hex
fillOpacitynumberOptional text fill opacity from 0 to 1
fontFamilystringOptional font family
fontSizenumberOptional font size
fontStylestringOptional font style
heightnumberOptional height
letterSpacingPxnumberOptional letter spacing in pixels
lineHeightPxnumberOptional line height in pixels
textAlignHorizontalstringOptional horizontal alignment
textAlignVerticalstringOptional vertical alignment
textAutoResizestringOptional text auto-resize mode
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

set_node_properties

Patch common node properties such as name, position, size, visibility, opacity, and corner radius. Accepts either a single nodeId or a nodeIds array to apply the same changes to multiple nodes in one call. Only supported properties for the target node type may be changed. Use set_solid_fill or set_gradient_fill to change paints. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
cornerRadiusnumberOptional corner radius
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
heightnumberOptional height
namestringOptional new node name
nodeIdstringThe node ID to update. Required unless nodeIds is given.
nodeIdsarrayBatch: apply the same property changes to multiple nodes. Required unless nodeId is given.
opacitynumberOptional opacity from 0 to 1
rotationnumberOptional rotation in degrees
visiblebooleanOptional visibility
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

set_node_constraints

Set native Figma horizontal and/or vertical constraints on layers inside frames, components, or instances. Values: MIN, MAX, CENTER, STRETCH, SCALE. Rejects incompatible Auto Layout children (unless absolute positioned) and FigJam nodes. Accepts nodeId or nodeIds, preserves the unspecified axis, and returns previous and applied constraints.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
horizontalstringHorizontal: MIN (Left), MAX (Right), CENTER, STRETCH (Left & Right), SCALE.
nodeIdstringSingle node to update. Required unless nodeIds is provided.
nodeIdsarrayOptional batch of nodes to apply the same constraints.
verticalVertical: MIN (Top), MAX (Bottom), CENTER, STRETCH (Top & Bottom), SCALE.

apply_paint_style

Link an existing local Figma Paint Style to fills or strokes, preserving native style association. Supports nodeId or nodeIds; validates compatible nodes and returns verified style IDs with per-node errors for batches. Available in Figma Design, not FigJam or Dev Mode.

ParameterTypeDescription
styleId *stringLocal Paint Style ID returned by get_styles.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
nodeIdstringSingle node ID. Provide nodeId or nodeIds.
nodeIdsarrayBatch of nodes to link to the same local Paint Style.
targetstringApply style to fill or stroke (default fill).

create_component_from_node

Convert an existing frame (or other eligible node) into a Figma Component in place, keeping its children, position, and size. The node ID changes, so use the returned nodeId afterwards. Rejects nodes that are already components or component sets, or that sit inside a component, component set, or instance. Use before combine_as_variants. Available in Figma Design, not FigJam or Dev Mode.

ParameterTypeDescription
nodeId *stringFrame (or other eligible node) to convert into a Component in place. It must not already be a component or component set, nor sit inside a component, component set, or instance.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
namestringOptional new name for the component. Use 'Property=Value' (e.g. 'State=Hover') to prepare it for combine_as_variants.

combine_as_variants

Combine two or more Components into one Component Set (native Figma Variants). Each input must be a COMPONENT not already in a set; convert frames first with create_component_from_node. Component names like 'State=Hover' become variant properties. Figma stacks the variants at (0,0), so this tool lays them out in a row or column with the given gap and resizes the set to fit. Returns the set ID and each variant's ID and position. Available in Figma Design, not FigJam or Dev Mode.

ParameterTypeDescription
nodeIds *arrayComponent node IDs to combine into one Component Set. Each must be a COMPONENT that is not already in a set (convert frames with create_component_from_node first). Names such as 'State=Default' / 'Sta…
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
gapnumberGap in pixels between variants (default 100).
layoutstringDirection used to lay out the variants inside the set (default ROW).
namestringOptional name for the Component Set, e.g. 'Button'.
parentIdstringOptional parent for the new Component Set. Defaults to the parent of the first component.

set_solid_fill

Replace a node's fill (or stroke) with a single solid paint. Provide a hex color and optional paint opacity — fillHex/fillOpacity are accepted as aliases. Use set_gradient_fill for gradient paints.

ParameterTypeDescription
nodeId *stringThe node ID to update
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringAlias for hex, matching the create_* tools. Supply one of the two.
fillOpacitynumberAlias for opacity, matching the create_* tools
hexstringSolid color as hex (e.g. '#FFAA00'). Required unless fillHex is given.
opacitynumberOptional paint opacity from 0 to 1 (default 1)
targetstringApply to fills or strokes (default fill)

set_gradient_fill

Replace a node's fill (or stroke) with a gradient paint. Provide ordered stops (position 0..1, hex color, optional alpha) and an optional 2x3 gradientTransform matching Figma's gradientTransform format. Useful for setting linear/radial/angular/diamond gradients programmatically.

ParameterTypeDescription
gradientStops *arrayOrdered list of gradient color stops (at least 2)
nodeId *stringThe node ID to update
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
gradientTransformarray2x3 affine matrix [[a,b,tx],[c,d,ty]] mapping the unit gradient onto the shape (Figma's gradientTransform). Defaults to identity (horizontal left→right).
gradientTypestringGradient family (default LINEAR)
opacitynumberOverall paint opacity (default 1)
targetstringApply to fills or strokes (default fill)

set_effects

Replace a node's effects list (drop/inner shadows, layer/background blurs). Pass an empty array to clear all effects. Each entry mirrors the shape returned by get_node's `effects` field.

ParameterTypeDescription
effects *arrayFull replacement list of effects. Pass [] to clear all effects. Each entry is a drop/inner shadow or a layer/background blur.
nodeId *stringThe node ID to update
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

set_stroke_properties

Patch stroke geometry properties: weight, align, dash pattern, cap, join. Use set_solid_fill/set_gradient_fill with target='stroke' to set the paint itself.

ParameterTypeDescription
nodeId *stringThe node ID to update
dashPatternarrayDash pattern as [dash, gap, dash, gap, ...] in pixels. Pass [] for a solid stroke.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
strokeAlignstringHow the stroke is positioned relative to the geometry edge
strokeCapstringEnd-cap style (only meaningful on open paths/lines)
strokeJoinstringCorner join style
strokeWeightnumberStroke thickness in pixels

set_auto_layout

Configure auto-layout on a frame: direction, gap, padding, alignment, sizing modes, wrap. Set layoutMode='NONE' to disable auto-layout on the frame. Not supported on SECTION nodes (Figma's API has no section auto-layout).

ParameterTypeDescription
nodeId *stringThe node ID to update (must be a frame)
counterAxisAlignItemsstringAlignment along the counter axis
counterAxisSizingModestringAUTO = hug contents along counter axis
counterAxisSpacingnumberGap between wrapped rows/columns (only when layoutWrap=WRAP)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
itemSpacingnumberGap between children along the primary axis (pixels)
layoutModestringAuto-layout direction. 'NONE' disables auto-layout.
layoutWrapstringAllow children to wrap onto multiple rows/columns
paddingBottomnumber
paddingLeftnumber
paddingRightnumber
paddingTopnumber
primaryAxisAlignItemsstringAlignment along the primary axis
primaryAxisSizingModestringAUTO = hug contents along primary axis

create_page

Create a new page in the Figma document, optionally naming it and switching the editor to it. Returns the new page's ID, which can be passed as parentId to create_frame / create_text / create_shape / create_image to author content on that page. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
namestringOptional page name (defaults to Figma's 'Page N')
setAsCurrentbooleanWhen true, switch the editor to the new page after creating it (default false)

create_frame

Create a new frame, optionally inside a specified parent. You can set name, size, position, and a solid fill. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional solid fill color as hex
fillOpacitynumberOptional solid fill opacity from 0 to 1
heightnumberFrame height
namestringOptional frame name
parentIdstringOptional parent node ID to append the frame into
widthnumberFrame width
xnumberOptional x position
ynumberOptional y position

create_section

Create a new section — a named container with its own background, resizable independently of its contents. Works in Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional solid fill color as hex
fillOpacitynumberOptional solid fill opacity from 0 to 1
heightnumberSection height (default 100)
namestringOptional section name
parentIdstringOptional parent node ID to append the section into
sectionContentsHiddenbooleanWhether the section's contents are marked as hidden
widthnumberSection width (default 100)
xnumberOptional x position
ynumberOptional y position

create_text

Create a new text node, optionally inside a specified parent. You can set its content, font, size, alignment, color, position, and bounds. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
charactersstringInitial text content
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional text fill color as hex
fillOpacitynumberOptional text fill opacity from 0 to 1
fontFamilystringFont family, defaults to Inter
fontSizenumberOptional font size
fontStylestringFont style, defaults to Regular
heightnumberOptional height
namestringOptional text node name
parentIdstringOptional parent node ID to append the text into
textAlignHorizontalstringOptional horizontal alignment
textAutoResizestringOptional text auto-resize mode
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

create_shape

Create a rectangle, ellipse, or line, optionally inside a specified parent. You can set its size, position, rotation, fill, and stroke. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
shapeType *stringShape type to create
cornerRadiusnumberOptional corner radius for supported shapes
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional fill color as hex
fillOpacitynumberOptional fill opacity from 0 to 1
heightnumberOptional height
namestringOptional shape name
parentIdstringOptional parent node ID to append the shape into
rotationnumberOptional rotation in degrees
strokeHexstringOptional stroke color as hex
strokeOpacitynumberOptional stroke opacity from 0 to 1
strokeWeightnumberOptional stroke weight
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

create_shape_with_text

Create a FigJam shape that carries its own text label (SHAPE_WITH_TEXT), e.g. ROUNDED_RECTANGLE, DIAMOND, or ENG_DATABASE. You can set its shape type, text (and text fill via textFillHex), fill, stroke, position, and size. Only available in FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
charactersstringText content rendered inside the shape
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
fillHexstringOptional fill color as hex
fillOpacitynumberOptional fill opacity from 0 to 1
fontFamilystringFont family, defaults to Inter
fontSizenumberOptional font size
fontStylestringFont style, defaults to Regular
heightnumberOptional height
namestringOptional shape name
parentIdstringOptional parent node ID to append the shape into
rotationnumberOptional rotation in degrees
shapeTypestringFigJam shape type (default ROUNDED_RECTANGLE)
strokeHexstringOptional stroke color as hex
strokeOpacitynumberOptional stroke opacity from 0 to 1
strokeWeightnumberOptional stroke weight
textFillHexstringOptional text label fill color as hex
textFillOpacitynumberOptional text label fill opacity from 0 to 1
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

create_image

Create an image-backed rectangle from a local file path, remote URL, or data URI. You can set its parent, position, size, corner radius, and fit mode. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
source *stringImage source. Accepts a local file path (absolute or relative to the MCP server cwd), an http/https URL, or a data URI.
cornerRadiusnumberOptional corner radius
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
heightnumberOptional height
namestringOptional image node name
parentIdstringOptional parent node ID to append the image into
scaleModestringHow the image should fit its bounds: FILL (default) or FIT
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

create_svg

Insert raw SVG markup or a workspace-local SVG file as editable Figma vector layers using figma.createNodeFromSvg. You can set its parent, position, size, and semantic name. When multiple files are connected, specify fileKey.

ParameterTypeDescription
source *stringSVG source. Accepts raw <svg> markup or a local SVG file path inside the MCP server working directory.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
heightnumberOptional height
namestringOptional SVG node name
parentIdstringOptional parent node ID to append the editable SVG into
widthnumberOptional width
xnumberOptional x position
ynumberOptional y position

import_html_layers

Import a DOM serialization (JSON produced by html-figma's browser htmlToFigma()) as editable Figma layers inside a new wrapper frame — frames, text, rectangles, and SVG vectors in one call. Source must be a JSON file path inside the MCP server working directory. Optionally append the wrapper into an existing frame/section via parentId. Requires the plugin to be open in the design editor. When multiple files are connected, specify fileKey.

ParameterTypeDescription
source *stringPath to a JSON file containing an html-figma htmlToFigma() layer tree, relative to the MCP server cwd (absolute paths must stay inside it).
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
namestringOptional name for the wrapper frame (default: 'imported layers')
parentIdstringOptional parent node ID (frame/section) to append the wrapper frame into. x/y become relative to that parent.
xnumberOptional x position of the wrapper frame
ynumberOptional y position of the wrapper frame

create_sticky

Create a new sticky note in FigJam. You can set its text content, position, and whether it uses the wide shape (isWideWidth). Only available in FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
charactersstringInitial text content for the sticky note
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
isWideWidthbooleanSet to true for the wide sticky shape (default false)
namestringOptional sticky note name
parentIdstringOptional parent node ID to append the sticky into
xnumberOptional x position
ynumberOptional y position

create_connector

Create a connector between two nodes in FigJam. You can specify start/end node IDs or absolute positions, plus the attachment side on each node (startAnchor/endAnchor: top, bottom, left, right, auto). Only available in FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
endAnchorAttachment side on the end node (requires endNodeId; default auto)
endNodeIdstringNode ID to connect to (end point)
endXnumberEnd X position (used if endNodeId not provided)
endYnumberEnd Y position (used if endNodeId not provided)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
namestringOptional connector name
parentIdstringOptional parent node ID to append the connector into
startAnchorstringAttachment side on the start node (requires startNodeId; default auto)
startNodeIdstringNode ID to connect from (start point)
startXnumberStart X position (used if startNodeId not provided)
startYnumberStart Y position (used if startNodeId not provided)
strokeHexstringOptional connector stroke color as hex
strokeWeightnumberOptional connector stroke weight

duplicate_nodes

Duplicate one or more nodes in place. The duplicates remain under the same parent as the originals. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeIds *arrayList of node IDs to duplicate
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

duplicate_with_offset

Duplicate nodes and move each duplicate by a fixed offset in one call. Returns the mapping from source node IDs to duplicate node IDs. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeIds *arrayList of node IDs to duplicate
offsetX *numberHorizontal offset applied to each duplicate
offsetY *numberVertical offset applied to each duplicate
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

fit_to_content

Resize a SECTION so it tightly wraps its children with optional padding: children are shifted so their bounding box starts at the padding, then the section is resized to bbox + 2×padding. SECTION nodes only — Figma's API has no equivalent for other containers. Works in Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringSection node ID to resize around its children (SECTION nodes only)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
paddingnumberWhitespace to leave around the content bounding box (default 0)

distribute_horizontally

Space three or more nodes with equal horizontal gaps, keeping the leftmost and rightmost nodes fixed. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeIds *arrayList of node IDs to distribute (at least 3)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

distribute_vertically

Space three or more nodes with equal vertical gaps, keeping the topmost and bottommost nodes fixed. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeIds *arrayList of node IDs to distribute (at least 3)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

align_to_grid

Snap each node's x/y position to a grid of the given size. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
gridSize *numberGrid spacing to snap positions to
nodeIds *arrayList of node IDs to align
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

place_below

Move a node directly below a reference node with an optional gap and start/center alignment across the reference's width. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringNode to move
relativeToId *stringReference node to place against
alignstringAlignment of the moved node against the reference edge (default start)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
gapnumberGap between the two nodes' edges (default 0)

place_right_of

Move a node directly to the right of a reference node with an optional gap and start/center alignment across the reference's height. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringNode to move
relativeToId *stringReference node to place against
alignstringAlignment of the moved node against the reference edge (default start)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
gapnumberGap between the two nodes' edges (default 0)

reparent_nodes

Move one or more nodes into a different parent container. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeIds *arrayList of node IDs to move
parentId *stringDestination parent node ID
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

group_nodes

Wrap a list of nodes in a new group. Nodes must share a common parent (or supply parentId explicitly). Returns the new group's node ID.

ParameterTypeDescription
nodeIds *arrayNode IDs to group. Must share a common parent.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
namestringOptional name for the new group
parentIdstringOptional explicit parent for the new group. Defaults to the shared parent of the input nodes.

ungroup_node

Ungroup a group or frame — its children move up to its parent and the wrapper is removed. Returns the IDs of the orphaned children in their new parent.

ParameterTypeDescription
nodeId *stringGroup or frame to ungroup. Children move up to its parent and the wrapper is removed.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

set_reactions

Set prototype reactions (interactions) on a node, e.g. on-click navigation to another frame or an on-hover overlay. Replaces ALL existing reactions on the node with the given list (pass [] to clear) and returns previousReactions so they can be restored. Each reaction needs a trigger (ON_CLICK, ON_HOVER, AFTER_TIMEOUT, ...) and at least one action (NODE, BACK, CLOSE, URL, ...); Figma validates the remaining fields and destinations. Available in Figma Design, not FigJam or Dev Mode.

ParameterTypeDescription
nodeId *stringNode to attach the prototype reactions to (e.g. a button, link, or card).
reactions *arrayComplete list of reactions for the node. Replaces every existing reaction (pass [] to clear them); the response includes previousReactions so they can be restored.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

set_selection

Set the current page selection to a list of node IDs. Pass an empty array to clear the selection. Works in Figma design editor, Dev Mode, and FigJam.

ParameterTypeDescription
nodeIds *arrayNode IDs to select. Pass [] to clear the selection.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

scroll_and_zoom_into_view

Scroll and zoom the Figma/FigJam viewport so the given nodes are framed in view. Works in Figma design editor, Dev Mode, and FigJam.

ParameterTypeDescription
nodeIds *arrayNode IDs to frame in the viewport
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

delete_nodes

Delete one or more nodes. This is destructive and requires confirm: true. Page and document nodes cannot be deleted through this tool. Works in both Figma and FigJam. When multiple files are connected, specify fileKey.

ParameterTypeDescription
confirm *booleanMust be true to confirm deletion
nodeIds *arrayList of node IDs to delete
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_motion_styles

List all available animation presets in Figma (Motion API beta). When multiple files are connected, specify fileKey.

ParameterTypeDescription
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

get_node_motion

Read a node's current animationStyles, animations, manualKeyframeTracks, and timelines (Motion API beta). When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe node ID to fetch motion properties for
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

apply_animation_style

Apply a preset animation style to a node (Motion API beta). When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe node ID to apply the style to
styleId *stringThe ID of the animation style to apply
animationStyleDataobjectOptional values used to configure the applied animation style (e.g. duration, timelineOffset, axis, direction)
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

remove_animation_style

Remove an applied animation style from a node (Motion API beta). If no animationStyleId is provided, removes all styles. When multiple files are connected, specify fileKey.

ParameterTypeDescription
nodeId *stringThe node ID to remove the style from
animationStyleIdstringThe ID of the animation style to remove. If omitted, all animation styles are removed.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

apply_manual_keyframe_track

Applies or replaces the manual Motion keyframe track for a property, paint, or effect field on a node. When multiple files are connected, specify fileKey.

ParameterTypeDescription
field *objectThe property, paint, or effect field to animate. Example: { type: 'PROPERTY', name: 'TRANSLATION_X' }
nodeId *stringThe node ID to apply the track to
track *objectThe manual keyframe track to write. Contains keyframes, baseValue, etc.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

remove_manual_keyframe_track

Removes the manual Motion keyframe track for a property, paint, or effect field on a node. When multiple files are connected, specify fileKey.

ParameterTypeDescription
field *objectThe property, paint, or effect field to remove. Example: { type: 'PROPERTY', name: 'TRANSLATION_X' }
nodeId *stringThe node ID to remove the track from
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

set_timeline_duration

Sets the duration (in seconds) for a timeline. When multiple files are connected, specify fileKey.

ParameterTypeDescription
duration *numberThe new timeline duration in seconds (must be greater than zero)
nodeId *stringThe node ID whose timeline duration will be changed
timelineId *stringA timeline id read from the node's timelines array
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.

save_screenshots

Export screenshots for multiple nodes and save them directly to the local filesystem. Returns metadata only (no base64). When multiple files are connected, specify fileKey.

ParameterTypeDescription
items *arrayList of screenshot save operations to execute in batch
clipbooleanDefault clipping behavior for saved screenshots. When true, PNGs are clipped to the node's logical bounds using Figma's absolute node bounds.
fileKeystringThe fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files.
formatstringDefault export format: PNG (default) or SVG or JPG or PDF
scalenumberDefault export scale for raster formats (default 2)