figma-mcp-bridge
v0.0.29MCP 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
rootId * | string | |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
maxNodes | integer |
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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to fetch. Accepts top-level IDs like '4029:12345' and instance-child IDs like 'I12740:17806;12740:17793'. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
includePrototype | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
includeEmpty | boolean | Also list nodes that support reactions but have none (default false). |
maxNodes | integer | Stop after inspecting this many nodes (default 5000); `truncated` reports it. |
nodeId | string | Root 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Screen (or any node inside one) to start from. Screen-to-screen navigation is followed breadth-first. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
maxNodesPerScreen | integer | Maximum nodes to inspect on each screen (default 5000). |
maxScreens | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
depth | number | How many levels deep to traverse the node tree (default 2) |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
clip | boolean | When true, export using Figma's absolute node bounds (REST use_absolute_bounds / plugin useAbsoluteBounds) so PNGs are clipped to the node's logical bounds |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
format | string | Export format: PNG (default) or SVG or JPG or PDF |
nodeIds | array | Optional 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. |
scale | number | Export 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.
| Parameter | Type | Description |
|---|---|---|
items * | array | List of nodes with their target visibility |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The text node ID to update |
characters | string | Alias for text, matching create_text. Supply one of the two. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
text | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The text node ID to update |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional text fill color as hex |
fillOpacity | number | Optional text fill opacity from 0 to 1 |
fontFamily | string | Optional font family |
fontSize | number | Optional font size |
fontStyle | string | Optional font style |
height | number | Optional height |
letterSpacingPx | number | Optional letter spacing in pixels |
lineHeightPx | number | Optional line height in pixels |
textAlignHorizontal | string | Optional horizontal alignment |
textAlignVertical | string | Optional vertical alignment |
textAutoResize | string | Optional text auto-resize mode |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
cornerRadius | number | Optional corner radius |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
height | number | Optional height |
name | string | Optional new node name |
nodeId | string | The node ID to update. Required unless nodeIds is given. |
nodeIds | array | Batch: apply the same property changes to multiple nodes. Required unless nodeId is given. |
opacity | number | Optional opacity from 0 to 1 |
rotation | number | Optional rotation in degrees |
visible | boolean | Optional visibility |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
horizontal | string | Horizontal: MIN (Left), MAX (Right), CENTER, STRETCH (Left & Right), SCALE. |
nodeId | string | Single node to update. Required unless nodeIds is provided. |
nodeIds | array | Optional batch of nodes to apply the same constraints. |
vertical | Vertical: 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.
| Parameter | Type | Description |
|---|---|---|
styleId * | string | Local Paint Style ID returned by get_styles. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
nodeId | string | Single node ID. Provide nodeId or nodeIds. |
nodeIds | array | Batch of nodes to link to the same local Paint Style. |
target | string | Apply 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Frame (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. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
name | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Component 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… |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
gap | number | Gap in pixels between variants (default 100). |
layout | string | Direction used to lay out the variants inside the set (default ROW). |
name | string | Optional name for the Component Set, e.g. 'Button'. |
parentId | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to update |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Alias for hex, matching the create_* tools. Supply one of the two. |
fillOpacity | number | Alias for opacity, matching the create_* tools |
hex | string | Solid color as hex (e.g. '#FFAA00'). Required unless fillHex is given. |
opacity | number | Optional paint opacity from 0 to 1 (default 1) |
target | string | Apply 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.
| Parameter | Type | Description |
|---|---|---|
gradientStops * | array | Ordered list of gradient color stops (at least 2) |
nodeId * | string | The node ID to update |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
gradientTransform | array | 2x3 affine matrix [[a,b,tx],[c,d,ty]] mapping the unit gradient onto the shape (Figma's gradientTransform). Defaults to identity (horizontal left→right). |
gradientType | string | Gradient family (default LINEAR) |
opacity | number | Overall paint opacity (default 1) |
target | string | Apply 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.
| Parameter | Type | Description |
|---|---|---|
effects * | array | Full replacement list of effects. Pass [] to clear all effects. Each entry is a drop/inner shadow or a layer/background blur. |
nodeId * | string | The node ID to update |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to update |
dashPattern | array | Dash pattern as [dash, gap, dash, gap, ...] in pixels. Pass [] for a solid stroke. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
strokeAlign | string | How the stroke is positioned relative to the geometry edge |
strokeCap | string | End-cap style (only meaningful on open paths/lines) |
strokeJoin | string | Corner join style |
strokeWeight | number | Stroke 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).
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to update (must be a frame) |
counterAxisAlignItems | string | Alignment along the counter axis |
counterAxisSizingMode | string | AUTO = hug contents along counter axis |
counterAxisSpacing | number | Gap between wrapped rows/columns (only when layoutWrap=WRAP) |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
itemSpacing | number | Gap between children along the primary axis (pixels) |
layoutMode | string | Auto-layout direction. 'NONE' disables auto-layout. |
layoutWrap | string | Allow children to wrap onto multiple rows/columns |
paddingBottom | number | |
paddingLeft | number | |
paddingRight | number | |
paddingTop | number | |
primaryAxisAlignItems | string | Alignment along the primary axis |
primaryAxisSizingMode | string | AUTO = 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
name | string | Optional page name (defaults to Figma's 'Page N') |
setAsCurrent | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional solid fill color as hex |
fillOpacity | number | Optional solid fill opacity from 0 to 1 |
height | number | Frame height |
name | string | Optional frame name |
parentId | string | Optional parent node ID to append the frame into |
width | number | Frame width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional solid fill color as hex |
fillOpacity | number | Optional solid fill opacity from 0 to 1 |
height | number | Section height (default 100) |
name | string | Optional section name |
parentId | string | Optional parent node ID to append the section into |
sectionContentsHidden | boolean | Whether the section's contents are marked as hidden |
width | number | Section width (default 100) |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
characters | string | Initial text content |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional text fill color as hex |
fillOpacity | number | Optional text fill opacity from 0 to 1 |
fontFamily | string | Font family, defaults to Inter |
fontSize | number | Optional font size |
fontStyle | string | Font style, defaults to Regular |
height | number | Optional height |
name | string | Optional text node name |
parentId | string | Optional parent node ID to append the text into |
textAlignHorizontal | string | Optional horizontal alignment |
textAutoResize | string | Optional text auto-resize mode |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
shapeType * | string | Shape type to create |
cornerRadius | number | Optional corner radius for supported shapes |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional fill color as hex |
fillOpacity | number | Optional fill opacity from 0 to 1 |
height | number | Optional height |
name | string | Optional shape name |
parentId | string | Optional parent node ID to append the shape into |
rotation | number | Optional rotation in degrees |
strokeHex | string | Optional stroke color as hex |
strokeOpacity | number | Optional stroke opacity from 0 to 1 |
strokeWeight | number | Optional stroke weight |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
characters | string | Text content rendered inside the shape |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
fillHex | string | Optional fill color as hex |
fillOpacity | number | Optional fill opacity from 0 to 1 |
fontFamily | string | Font family, defaults to Inter |
fontSize | number | Optional font size |
fontStyle | string | Font style, defaults to Regular |
height | number | Optional height |
name | string | Optional shape name |
parentId | string | Optional parent node ID to append the shape into |
rotation | number | Optional rotation in degrees |
shapeType | string | FigJam shape type (default ROUNDED_RECTANGLE) |
strokeHex | string | Optional stroke color as hex |
strokeOpacity | number | Optional stroke opacity from 0 to 1 |
strokeWeight | number | Optional stroke weight |
textFillHex | string | Optional text label fill color as hex |
textFillOpacity | number | Optional text label fill opacity from 0 to 1 |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | Image source. Accepts a local file path (absolute or relative to the MCP server cwd), an http/https URL, or a data URI. |
cornerRadius | number | Optional corner radius |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
height | number | Optional height |
name | string | Optional image node name |
parentId | string | Optional parent node ID to append the image into |
scaleMode | string | How the image should fit its bounds: FILL (default) or FIT |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | SVG source. Accepts raw <svg> markup or a local SVG file path inside the MCP server working directory. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
height | number | Optional height |
name | string | Optional SVG node name |
parentId | string | Optional parent node ID to append the editable SVG into |
width | number | Optional width |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
source * | string | Path to a JSON file containing an html-figma htmlToFigma() layer tree, relative to the MCP server cwd (absolute paths must stay inside it). |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
name | string | Optional name for the wrapper frame (default: 'imported layers') |
parentId | string | Optional parent node ID (frame/section) to append the wrapper frame into. x/y become relative to that parent. |
x | number | Optional x position of the wrapper frame |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
characters | string | Initial text content for the sticky note |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
isWideWidth | boolean | Set to true for the wide sticky shape (default false) |
name | string | Optional sticky note name |
parentId | string | Optional parent node ID to append the sticky into |
x | number | Optional x position |
y | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
endAnchor | Attachment side on the end node (requires endNodeId; default auto) | |
endNodeId | string | Node ID to connect to (end point) |
endX | number | End X position (used if endNodeId not provided) |
endY | number | End Y position (used if endNodeId not provided) |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
name | string | Optional connector name |
parentId | string | Optional parent node ID to append the connector into |
startAnchor | string | Attachment side on the start node (requires startNodeId; default auto) |
startNodeId | string | Node ID to connect from (start point) |
startX | number | Start X position (used if startNodeId not provided) |
startY | number | Start Y position (used if startNodeId not provided) |
strokeHex | string | Optional connector stroke color as hex |
strokeWeight | number | Optional 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | List of node IDs to duplicate |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | List of node IDs to duplicate |
offsetX * | number | Horizontal offset applied to each duplicate |
offsetY * | number | Vertical offset applied to each duplicate |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Section node ID to resize around its children (SECTION nodes only) |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
padding | number | Whitespace 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | List of node IDs to distribute (at least 3) |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | List of node IDs to distribute (at least 3) |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
gridSize * | number | Grid spacing to snap positions to |
nodeIds * | array | List of node IDs to align |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node to move |
relativeToId * | string | Reference node to place against |
align | string | Alignment of the moved node against the reference edge (default start) |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
gap | number | Gap 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node to move |
relativeToId * | string | Reference node to place against |
align | string | Alignment of the moved node against the reference edge (default start) |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
gap | number | Gap 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | List of node IDs to move |
parentId * | string | Destination parent node ID |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Node IDs to group. Must share a common parent. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
name | string | Optional name for the new group |
parentId | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Group or frame to ungroup. Children move up to its parent and the wrapper is removed. |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | Node to attach the prototype reactions to (e.g. a button, link, or card). |
reactions * | array | Complete list of reactions for the node. Replaces every existing reaction (pass [] to clear them); the response includes previousReactions so they can be restored. |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Node IDs to select. Pass [] to clear the selection. |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Node IDs to frame in the viewport |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to confirm deletion |
nodeIds * | array | List of node IDs to delete |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to fetch motion properties for |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to apply the style to |
styleId * | string | The ID of the animation style to apply |
animationStyleData | object | Optional values used to configure the applied animation style (e.g. duration, timelineOffset, axis, direction) |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node ID to remove the style from |
animationStyleId | string | The ID of the animation style to remove. If omitted, all animation styles are removed. |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
field * | object | The property, paint, or effect field to animate. Example: { type: 'PROPERTY', name: 'TRANSLATION_X' } |
nodeId * | string | The node ID to apply the track to |
track * | object | The manual keyframe track to write. Contains keyframes, baseValue, etc. |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
field * | object | The property, paint, or effect field to remove. Example: { type: 'PROPERTY', name: 'TRANSLATION_X' } |
nodeId * | string | The node ID to remove the track from |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
duration * | number | The new timeline duration in seconds (must be greater than zero) |
nodeId * | string | The node ID whose timeline duration will be changed |
timelineId * | string | A timeline id read from the node's timelines array |
fileKey | string | The 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.
| Parameter | Type | Description |
|---|---|---|
items * | array | List of screenshot save operations to execute in batch |
clip | boolean | Default clipping behavior for saved screenshots. When true, PNGs are clipped to the node's logical bounds using Figma's absolute node bounds. |
fileKey | string | The fileKey of the Figma file to query. Required when multiple files are connected. Use list_files to see connected files. |
format | string | Default export format: PNG (default) or SVG or JPG or PDF |
scale | number | Default export scale for raster formats (default 2) |