OpenFigma MCP
v0.5.0Read and edit Figma files from any MCP agent through a Figma plugin, a session per file, no relay
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_document_info
Get detailed information about the current Figma document: the current page's top-level nodes and every page of the document
get_selection
List the current page's selected nodes: ID, name, type and visibility
read_my_design
Get each selected node's details, as get_node_info gives them
get_node_info
Get a node and its subtree as Figma's REST JSON, trimmed, with its component, styles, text styles, bound variables and layout
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to get information about |
get_nodes_info
get_node_info for several nodes; IDs that aren't found are left out
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to get information about |
create_rectangle
Create a rectangle
| Parameter | Type | Description |
|---|---|---|
height * | number | Height of the rectangle |
width * | number | Width of the rectangle |
x * | number | X position |
y * | number | Y position |
name | string | Optional name for the rectangle |
parentId | string | Optional parent node ID to append the rectangle to |
create_frame
Create a frame, optionally with a fill, a stroke and auto layout
| Parameter | Type | Description |
|---|---|---|
height * | number | Height of the frame |
width * | number | Width of the frame |
x * | number | X position |
y * | number | Y position |
counterAxisAlignItems | string | Counter axis alignment for auto-layout frame |
fillColor | object | Fill color in RGBA format |
itemSpacing | number | Distance between children in auto-layout frame. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. |
layoutMode | string | Auto-layout mode for the frame |
layoutSizingHorizontal | string | Horizontal sizing mode for auto-layout frame |
layoutSizingVertical | string | Vertical sizing mode for auto-layout frame |
layoutWrap | string | Whether the auto-layout frame wraps its children |
name | string | Optional name for the frame |
paddingBottom | number | Bottom padding for auto-layout frame |
paddingLeft | number | Left padding for auto-layout frame |
paddingRight | number | Right padding for auto-layout frame |
paddingTop | number | Top padding for auto-layout frame |
parentId | string | Optional parent node ID to append the frame to |
primaryAxisAlignItems | string | Primary axis alignment for auto-layout frame. Note: When set to SPACE_BETWEEN, itemSpacing will be ignored as children will be evenly spaced. |
strokeColor | object | Stroke color in RGBA format |
strokeWeight | number | Stroke weight |
create_text
Create a text node, in Inter unless fontFamily sets the font
| Parameter | Type | Description |
|---|---|---|
text * | string | Text content |
x * | number | X position |
y * | number | Y position |
fontColor | object | Font color in RGBA format |
fontFamily | string | Any font installed for Figma, e.g. "SF Pro", "SF Pro Rounded", "New York" |
fontSize | number | Font size (default: 14) |
fontStyle | string | The family's own style name, e.g. "Regular", "Semibold", "Bold" for SF Pro |
fontWeight | number | Font weight, e.g. 400 Regular, 700 Bold (default 400); ignored when fontStyle is set |
letterSpacing | number | Letter spacing in pixels |
lineHeight | number | Line height in pixels |
name | string | Semantic layer name for the text node |
parentId | string | Optional parent node ID to append the text to |
textAlignHorizontal | string | |
textAlignVertical | string | |
width | number | Fixed width: the text wraps and its height follows |
set_fill_color
Replace a node's fills with one solid colour
| Parameter | Type | Description |
|---|---|---|
b * | number | Blue component (0-1) |
g * | number | Green component (0-1) |
nodeId * | string | The ID of the node to modify |
r * | number | Red component (0-1) |
a | number | Alpha component (0-1) |
set_stroke_color
Replace a node's strokes with one solid colour
| Parameter | Type | Description |
|---|---|---|
b * | number | Blue component (0-1) |
g * | number | Green component (0-1) |
nodeId * | string | The ID of the node to modify |
r * | number | Red component (0-1) |
a | number | Alpha component (0-1) |
weight | number | Stroke weight; 1 when omitted |
move_node
Set a node's position, relative to its parent
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to move |
x * | number | New X position |
y * | number | New Y position |
clone_node
Duplicate a node into the same parent, on top of its siblings
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to clone |
x | number | X position of the copy; needs y |
y | number | Y position of the copy; needs x |
resize_node
Resize a node
| Parameter | Type | Description |
|---|---|---|
height * | number | New height |
nodeId * | string | The ID of the node to resize |
width * | number | New width |
delete_node
Delete a node
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to delete |
delete_multiple_nodes
Delete several nodes
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to delete |
export_node_as_image
Export a node and return the image in the conversation; export_node_to_file keeps it out
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to export |
format | string | Default PNG |
scale | number | PNG and JPG only; default 1 |
set_text_content
Replace a text node's text
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the text node to modify |
text * | string | New text content |
get_styles
Get the document's local styles: colours, texts, effects and grids
set_current_page
Switch Figma to a page of the current document, by its ID or its name, and get that page's top-level nodes and every page of the document
| Parameter | Type | Description |
|---|---|---|
pageId | string | The ID of the page to switch to, from get_document_info's pages |
pageName | string | The page's name, or a part of it that only one page's name contains |
get_variables
Get the current document's local variables by collection, with each variable's value in every mode (colors as hex, aliases by the name they point to)
| Parameter | Type | Description |
|---|---|---|
collection | string | Only the collections whose name contains this text |
get_local_components
List every local component: ID, name and key
get_components_by_page
List each page's component sets and the components outside sets, with each one's description and documentation link. Variants are left out (get_local_components lists them), except those with a description or link of their own, listed under their set
set_documentation_links
Set or clear the documentation links of components, component sets, variants and styles, by ID. An empty uri clears the link. Each item reports its own result
| Parameter | Type | Description |
|---|---|---|
links * | array | The links to set, in order |
get_annotations
Get the annotations on a node and its descendants
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node to read |
includeCategories | boolean | Also return the document's annotation categories (default true) |
set_annotation
Set a node's annotation, replacing any it has
| Parameter | Type | Description |
|---|---|---|
labelMarkdown * | string | The annotation text in markdown format |
nodeId * | string | The ID of the node to annotate |
categoryId | string | The ID of the annotation category |
properties | array | Additional properties for the annotation |
set_multiple_annotations
Annotate several nodes, one after another; each annotation replaces those on its node
| Parameter | Type | Description |
|---|---|---|
annotations * | array | One annotation per node |
nodeId * | string | The node they sit in; only reported back |
create_component_instance
Create an instance of a component: a local one by componentId, a published one by componentKey
| Parameter | Type | Description |
|---|---|---|
x * | number | X position |
y * | number | Y position |
componentId | string | A local component's ID (id from get_local_components) |
componentKey | string | A published component's key (key from get_local_components, or a library's) |
parentId | string | Optional parent node ID to place the instance into |
get_instance_overrides
List an instance's overrides
| Parameter | Type | Description |
|---|---|---|
nodeId | string | The instance; the selected one when omitted |
set_instance_overrides
Copy a source instance's overrides onto target instances, switching each target to the source's main component
| Parameter | Type | Description |
|---|---|---|
sourceInstanceId * | string | The instance to copy from |
targetNodeIds * | array | The instances to change |
set_corner_radius
Set a node's corner radius, on all corners or the chosen ones
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to modify |
radius * | number | Corner radius value |
corners | array | Optional array of 4 booleans to specify which corners to round [topLeft, topRight, bottomRight, bottomLeft] |
scan_text_nodes
List the text nodes inside a node: text, font, position, size and layer path
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | ID of the node to scan |
scan_nodes_by_types
Find a node's descendants of the given types, with their bounding boxes
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | ID of the node to scan |
types * | array | Array of node types to find in the child nodes (e.g. ['COMPONENT', 'FRAME']) |
set_multiple_text_contents
Set the text of several text nodes, five at a time
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node they sit in; only reported back |
text * | array | Text node IDs and their new text |
set_layout_mode
Set a frame's auto layout direction and wrap
| Parameter | Type | Description |
|---|---|---|
layoutMode * | string | Layout mode for the frame |
nodeId * | string | The ID of the frame to modify |
layoutWrap | string | Whether the auto-layout frame wraps its children |
set_padding
Set an auto-layout frame's padding
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the frame to modify |
paddingBottom | number | Bottom padding value |
paddingLeft | number | Left padding value |
paddingRight | number | Right padding value |
paddingTop | number | Top padding value |
set_axis_align
Set an auto-layout frame's primary and counter axis alignment
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the frame to modify |
counterAxisAlignItems | string | Counter axis alignment (MIN/MAX = top/bottom in horizontal, left/right in vertical) |
primaryAxisAlignItems | string | Primary axis alignment (MIN/MAX = left/right in horizontal, top/bottom in vertical). Note: When set to SPACE_BETWEEN, itemSpacing will be ignored as children will be evenly spaced. |
set_layout_sizing
Set an auto-layout frame's horizontal and vertical sizing
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the frame to modify |
layoutSizingHorizontal | string | Horizontal sizing mode (HUG for frames/text only, FILL for auto-layout children only) |
layoutSizingVertical | string | Vertical sizing mode (HUG for frames/text only, FILL for auto-layout children only) |
set_item_spacing
Set the spacing between an auto-layout frame's children, and between wrapped rows
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the frame to modify |
counterAxisSpacing | number | Distance between wrapped rows/columns. Only works when layoutWrap is set to WRAP. |
itemSpacing | number | Distance between children. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. |
get_reactions
Get the prototype reactions (interactions) of nodes. The reaction_to_connector_strategy prompt shows how to draw them as FigJam connectors with create_connections
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to get reactions from |
set_default_connector
Choose the connector create_connections copies: the given one, else the one already set, else the first on the current page
| Parameter | Type | Description |
|---|---|---|
connectorId | string | A connector's ID |
create_connections
Connect pairs of nodes with copies of the default connector, each with optional text
| Parameter | Type | Description |
|---|---|---|
connections * | array | Array of node connections to create |
set_focus
Select a node and scroll the viewport to it
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to focus on |
set_selections
Select nodes and scroll the viewport to them
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Array of node IDs to select |
set_image_fill
Fill a node in Figma with an image from a local file path, a URL, or base64 data (replaces the node's existing fills)
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to fill |
imageBase64 | string | Base64-encoded image data, with or without a data: URI prefix (only when the image exists nowhere else) |
imagePath | string | Absolute path to a local image file, read by the MCP server (preferred: keeps image bytes out of the model context) |
imageUrl | string | Image URL, fetched by the MCP server (the Figma plugin cannot fetch arbitrary domains itself) |
scaleMode | string | How the image fills the node (default: FILL) |
rename_node
Rename a node
| Parameter | Type | Description |
|---|---|---|
name * | string | The new name for the node |
nodeId * | string | The ID of the node to rename |
create_section
Create a section to group related content on the canvas
| Parameter | Type | Description |
|---|---|---|
height * | number | Height of the section |
width * | number | Width of the section |
x * | number | X position |
y * | number | Y position |
name | string | Optional name for the section |
set_parent
Move a node into a new parent node (e.g. a section, frame or group). Preserves the node's absolute position unless x/y are provided
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The ID of the node to move |
parentId * | string | The ID of the new parent node (must support children, e.g. a section, frame or group) |
index | number | Optional child index to insert at (default: appended as last child) |
x | number | Optional X position relative to the new parent |
y | number | Optional Y position relative to the new parent |
create_page
Create a page in the current document (a Starter-plan file is limited to 3 pages; Figma refuses more)
| Parameter | Type | Description |
|---|---|---|
name * | string | The page's name |
switchTo | boolean | Make it the current page |
create_ellipse
Create an ellipse, circle, ring (stroke without fill) or arc
| Parameter | Type | Description |
|---|---|---|
height * | number | Height |
width * | number | Width |
x * | number | X position |
y * | number | Y position |
arcData | object | Arc or donut |
fillColor | object | Fill colour; omit for an outline only |
name | string | Layer name |
parentId | string | Parent node ID (default: current page) |
strokeColor | Stroke colour | |
strokeWeight | number | Stroke weight |
create_svg
Create vector layers from SVG markup, like Figma's SVG import: lines, arrows, paths, icons
| Parameter | Type | Description |
|---|---|---|
svg * | string | A complete <svg> document |
x * | number | X position |
y * | number | Y position |
name | string | Layer name |
parentId | string | Parent node ID (default: current page) |
set_text_style
Change an existing text node's font, size, alignment, line height, letter spacing or sizing, including text inside an instance
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The text node's ID |
fontFamily | string | Any font installed for Figma, e.g. "SF Pro", "SF Pro Rounded", "New York" |
fontSize | number | Font size |
fontStyle | string | The family's own style name, e.g. "Regular", "Semibold", "Bold" for SF Pro |
letterSpacing | number | Letter spacing in pixels |
lineHeight | number | Line height in pixels |
textAlignHorizontal | string | |
textAlignVertical | string | |
textAutoResize | string | |
width | number | Fixed width: the text wraps and its height follows |
set_node_properties
Set a node's opacity, visibility, rotation, blend mode, clipping, lock, stroke alignment, dashes or corner smoothing; hiding a layer inside an instance is an override
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node's ID |
blendMode | string | |
clipsContent | boolean | Frames: hide children outside the bounds (crops an image inside) |
cornerSmoothing | number | 0.6 matches iOS's continuous corners |
dashPattern | array | Dash and gap lengths, e.g. [4, 4]; [] for solid |
locked | boolean | |
opacity | number | |
rotation | number | Degrees |
strokeAlign | string | |
visible | boolean |
set_effects
Replace a node's effects with drop or inner shadows, layer or background blur, or Liquid Glass
| Parameter | Type | Description |
|---|---|---|
effects * | array | Effects in order; [] removes them all |
nodeId * | string | The node's ID |
set_gradient_fill
Replace a node's fills with a linear, radial, angular or diamond gradient
| Parameter | Type | Description |
|---|---|---|
gradientType * | string | |
nodeId * | string | The node's ID |
stops * | array | Colour stops from 0 to 1 |
angle | number | Degrees: 0 runs left to right, 90 (default) top to bottom |
create_slice
Create a slice: an export region over whatever lies under it, to export with export_node_to_file
| Parameter | Type | Description |
|---|---|---|
height * | number | Height |
width * | number | Width |
x * | number | X position |
y * | number | Y position |
name | string | Layer name |
parentId | string | Parent node ID (default: current page) |
get_instance_properties
Get an instance's component properties (variants, booleans, text, instance swaps) with every allowed value, and its main component
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The instance's ID |
set_instance_properties
Set an instance's component properties: variant values by name; boolean, text and instance-swap properties by their name with the #id suffix from get_instance_properties
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The instance's ID |
properties * | object | e.g. {"Style": "Glass", "Show Icon#12:3": false} |
detach_instance
Detach an instance into a plain frame (and any instances it sits in)
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The instance's ID |
group_nodes
Group nodes
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Nodes to group |
name | string | Group name |
parentId | string | Where the group goes (default: the first node's parent) |
ungroup_node
Ungroup a group or frame, keeping its children
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The group's ID |
boolean_operation
Combine shapes with union, subtract, intersect or exclude
| Parameter | Type | Description |
|---|---|---|
nodeIds * | array | Shapes; subtract removes the rest from the first |
operation * | string | |
name | string | Layer name |
parentId | string | Where the result goes (default: the first node's parent) |
create_component_from_node
Turn a frame or other node into a component, to reuse it as instances
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node's ID |
apply_style
Apply a local fill, stroke, text or effect style (IDs from get_styles)
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
nodeId * | string | The node's ID |
styleId * | string | The style's ID |
bind_color_variable
Bind a node's fill or stroke colour to a local colour variable, by ID or by the name get_variables lists
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node's ID |
property * | string | |
collection | string | The collection's name, when the variable name repeats |
variableId | string | The variable's ID |
variableName | string | The variable's name, e.g. "Labels/Primary" |
export_node_to_file
Export a node or slice to a file on disk (PNG, JPG, SVG or PDF), keeping the image out of the conversation
| Parameter | Type | Description |
|---|---|---|
nodeId * | string | The node or slice to export |
path * | string | Absolute output path, including the file name |
format | string | Default PNG |
scale | number | PNG and JPG only; default 1 |
join_channel
Choose the Figma file to work on, by its file key. Waits up to 10 seconds for the OpenFigma plugin running in that file to connect
| Parameter | Type | Description |
|---|---|---|
channel * | string | The file key: the ID after /design/ in the file's URL |