About Figma Console
Figma Console is an MCP server published by southleft in the Blockchain category: your design system as an API. Connect AI to Figma for extraction, creation, and debugging. Conduid read 147 tools from its source: figjam_auto_arrange, figjam_create_code_block, figjam_create_connector, figjam_create_section, figjam_create_shape_with_text, figjam_create_stickies and 141 more. It is published to npm as figma-console-mcp and starts with npx.
The repository has 3.5K stars and 317 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v2.4.1 (29 Nov 2026): The design system audit judges large systems' color tokens. It follows v2.4.0 (29 Nov 2026), and the 5 most recent releases go back to v2.3.1 (28 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include figma, plugin, console, debugging, cloudflare and workers.
Install
claude mcp add figma-console -- npx -y figma-console-mcp@latestnpx -y figma-console-mcp@latestgit clone https://github.com/southleft/figma-console-mcpTools (147)
figjam_auto_arrangeArrange nodes in grid, horizontal, or vertical layouts| Parameter | Type | Description |
|---|---|---|
| columns | number | Number of columns for grid layout (defaults to sqrt of node count) |
| layout | string | Layout type: grid, horizontal, or vertical |
| nodeIds * | array | Array of node IDs to arrange (max ${MAX_ARRANGE_NODES}) |
| spacing | number | Spacing between nodes in pixels |
figjam_create_code_blockAdd code snippets with syntax highlighting| Parameter | Type | Description |
|---|---|---|
| code * | string | The code content |
| language | string | Programming language (e.g., 'JAVASCRIPT', 'PYTHON', 'TYPESCRIPT', 'JSON', 'HTML', 'CSS') |
| x | number | X position on canvas |
| y | number | Y position on canvas |
figjam_create_connectorConnect nodes with labeled connector lines| Parameter | Type | Description |
|---|---|---|
| endMagnet | string | Magnet position on the end node |
| endNodeId * | string | Node ID of the end element |
| label | string | Optional text label on the connector |
| startMagnet | string | Magnet position on the start node |
| startNodeId * | string | Node ID of the start element |
figjam_create_sectionGroup board content in a section| Parameter | Type | Description |
|---|---|---|
| fillColor | string | Fill color as hex |
| height | number | Section height in pixels |
| name | string | Section name/title |
| width | number | Section width in pixels |
| x | number | X position on canvas |
| y | number | Y position on canvas |
figjam_create_shape_with_textCreate flowchart shapes (diamond, ellipse, etc.)| Parameter | Type | Description |
|---|---|---|
| fillColor | string | Fill color as hex (e.g., '#E1F5EE') |
| fontSize | number | Text font size in pixels |
| height | number | Height in pixels |
| shapeType | string | Shape type |
| strokeColor | string | Stroke/border color as hex |
| strokeDashPattern | string | Dash pattern as comma-separated numbers (e.g., '10,5' for dashed) |
| text | string | Text label for the shape |
| width | number | Width in pixels |
| x | number | X position on canvas |
| y | number | Y position on canvas |
figjam_create_stickiesBatch create up to 200 stickies| Parameter | Type | Description |
|---|---|---|
| stickies | array | Text content |
figjam_create_stickyCreate a sticky note with color options| Parameter | Type | Description |
|---|---|---|
| color | string | Sticky color |
| text * | string | Text content for the sticky note |
| x | number | X position on canvas |
| y | number | Y position on canvas |
figjam_create_tableCreate tables with cell data| Parameter | Type | Description |
|---|---|---|
| columns * | number | Number of columns (1-${MAX_TABLE_COLUMNS}) |
| data | array | 2D array of cell text content (row-major order) |
| rows * | number | Number of rows (1-${MAX_TABLE_ROWS}) |
| x | number | X position on canvas |
| y | number | Y position on canvas |
figjam_generate_diagramDraw a native diagram from Mermaid (flowchart, state, sequence, ER, gantt, architecture) or a JSON graphfigjam_get_board_contentsRead all content from a FigJam board| Parameter | Type | Description |
|---|---|---|
| maxNodes | number | Maximum nodes to return (1-${MAX_READ_NODES}, default: 500) |
| nodeTypes | array | Filter by node types. Omit for all. |
figjam_get_connectionsRead the connection graph (flowcharts, relationships)figjam_read_diagramList generated diagrams, read one back as Mermaid, or turn a hand-drawn board into Mermaidfigjam_replace_diagramRedraw a generated diagram in place, keeping what people added (asks first if they edited it; call it by name, not through `figma_call`)figma_add_component_propertyAdd a new component property to a component or component set. Properties enable dynamic content and behavior in component instances. Supported types: BOOLEAN (toggle), TEXT (string), INSTANCE_SWAP (component swap), VARIANT (variant selection), SLOT (freeform slot — prefer figma_create_slot for new slots).| Parameter | Type | Description |
|---|---|---|
| defaultValue | any | Default value. Required for TEXT (string), INSTANCE_SWAP (component id), and VARIANT (a non-empty variant option name — Figma rejects empty). Optional for BOOLEAN (defaults false). Omit for SLOT. |
| description | string | Property description (SLOT properties only) |
| nodeId * | string | The component or component set node ID |
| preferredValues | array | Preferred components (INSTANCE_SWAP and SLOT only) |
| propertyName * | string | Name for the new property (e.g., 'Show Icon', 'Button Label', 'Content') |
| type * | string | Property type: BOOLEAN for toggles, TEXT for strings, INSTANCE_SWAP for component swaps, VARIANT for variant selection, SLOT for freeform slot areas |
figma_add_modeAdd a new mode to an existing Figma variable collection. Modes allow variables to have different values for different contexts (e.g., Light/Dark themes, device sizes). Requires the Desktop Bridge plugin to be running.| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | The collection ID to add the mode to (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |
| modeName * | string | The name for the new mode (e.g., 'Dark', 'Mobile', 'High Contrast'). |
figma_add_shape_to_slideAdd rectangle or ellipse shapes with color| Parameter | Type | Description |
|---|---|---|
| fillColor | string | Hex color e.g. '#FF5733' |
| height * | number | Height in pixels |
| shapeType * | string | Shape type |
| slideId * | string | The node ID of the slide |
| width * | number | Width in pixels |
| x * | number | X position |
| y * | number | Y position |
figma_add_slot_propertyManually add a SLOT component property and bind it to an existing frame (alternative to figma_create_slot). The frame must be a direct child of the component, must not use GRID layout, and must not be nested inside another slot. Supports description and preferredValues.${FILE_KEY_DOC}| Parameter | Type | Description |
|---|---|---|
| description | string | Slot property description (SLOT-only) |
| frameNodeId * | string | Frame node ID to bind as the slot content area |
| nodeId * | string | COMPONENT or COMPONENT_SET node ID |
| preferredValues | array | Preferred components for slot content (SLOT-only) |
| propertyName * | string | Slot property name (e.g. 'Content') |
figma_add_text_to_slideAdd text to a slide with custom fonts, colors, alignment, and wrapping| Parameter | Type | Description |
|---|---|---|
| color | string | Text fill color as hex (e.g., '#FFFFFF') |
| fontFamily | string | Font family (e.g., 'Manrope', 'IBM Plex Sans') |
| fontSize | number | Font size in pixels |
| fontStyle | string | Font style/weight (e.g., 'Bold', 'SemiBold', 'Medium') |
| letterSpacing | number | Letter spacing in pixels |
| lineHeight | number | Line height in pixels |
| slideId * | string | The node ID of the slide |
| text * | string | The text content |
| textAlign | string | Horizontal text alignment |
| textCase | string | Text case transformation |
| width | number | Text box width for wrapping. When set, enables text wrapping. |
| x | number | X position |
| y | number | Y position |
figma_analyze_component_setAnalyze a Figma COMPONENT_SET to extract variant state machine and cross-variant diffs for code generation. Returns: (1) variant axes (size, state) with all values, (2) CSS pseudo-class mappings for interaction states (hover→:hover, focus→:focus-visible, disabled→:disabled, error→[aria-invalid]), (3) visual diff from default state per variant (only changed properties — fill/stroke as token or hex, gradient, image and paint opacity, stroke weight, text color, opacity, effects, corner radius, size, child layers, visibility, the variant's own fill/stroke/opacity/radius (`variantFill`, `variantStroke`, `variantOpacity`, `variantRadius`), auto-layout (`layout`) and swapped spacing/size tokens (`tokens`), plus `layers`: changes to nested layers keyed by layer path such as 'Icons/Radio › Icon' — instance swaps, size, free position, rotation, vector shape, label text and typography), (4) component property definitions mapped to code props (BOOLEAN→boolean, TEXT→string, INSTANCE_SWAP→slot/ReactNode), and (5) slots — Figma SLOT properties (name, preferredValues = the components a slot accepts, and limitViolations) to implement as named slots / children props (React {children} or named ReactNode; Web Components <slot name>). Use this on the parent COMPONENT_SET node, not individual variants. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | COMPONENT_SET node ID (the parent of all variants, e.g., '214:274') |
figma_append_to_slotAdd content to a slot on a component instance. Clones sourceNodeId into the slot, or creates a new node (nodeType). SLOT content cannot be set via figma_set_instance_properties — use this tool instead. Widgets, stickies, and raw ComponentNodes cannot be appended to slots.${FILE_KEY_DOC}| Parameter | Type | Description |
|---|---|---|
| clearExisting | boolean | Remove existing slot children before appending |
| clone | boolean | When using sourceNodeId, clone the node (default true). Set false to move. |
| instanceId | string | Instance ID — use with slotName when slotId is unknown |
| nodeType | string | Create a new node in the slot instead of cloning |
| properties | object | Properties for created nodes: name, text, width, height |
| slotId | string | Direct SlotNode ID (from figma_get_slots) |
| slotName | string | Slot layer name on the instance (e.g. 'Content') |
| sourceNodeId | string | Node to clone into the slot (default: clone=true) |
figma_apply_animationAnimate a node with Figma Motion. Pass exactly one of: - preset: a Figma animation style (Position, Scale, Rotation, Size, Opacity, Path, TextStagger), with optional duration, timelineOffset, easing and preset props. List presets and their props with figma_manage_animation_styles action 'list_presets'. - customStyleId: a local custom animation style (see figma_manage_animation_styles). - keyframeTracks: manual keyframes per property, paint color or effect field. Each track replaces any existing track for that target. Easing can be a literal curve or an EASING variable (easing.variableId); a preset's duration can be bound to a TIMING variable (durationVariableId). Main components can't be animated through the Plugin API: use an instance or frame. Motion plays in Figma's preview and video export, not in static screenshots.| Parameter | Type | Description |
|---|---|---|
| customStyleId | string | Local custom animation style id |
| duration | number | Preset duration in seconds |
| durationVariableId | string | Bind the preset's duration to a TIMING variable |
| keyframeTracks | array | Manual keyframe tracks |
| nodeId * | string | Node to animate (an instance or frame, not a main component) |
| preset | string | Figma animation style id, e.g. 'Opacity', 'Scale', 'Position' |
| timelineOffset | number | Start offset on the timeline in seconds |
figma_apply_shaderApply a shader to a node's fills, strokes or effects, or change the properties of one already applied. Set properties by name (e.g. {turbulence: 40, cloudColor: '#E8F4FF'}); names, types and defaults come from figma_list_shaders. Colors take hex strings or {r,g,b,a}, and any property can bind a variable with {variableId}. Pass index to change a shader already in that list; without index the shader is added on top (or replaces the list with replace: true). Fill shaders go on fills or strokes; effect shaders go on effects. Unknown property names change nothing and list the valid ones. Requires Desktop Bridge.| Parameter | Type | Description |
|---|---|---|
| blendMode | string | Fills and strokes only |
| index | number | Change the shader at this position in the target list instead of adding one |
| nodeId * | string | |
| opacity | number | Fills and strokes only |
| properties | object | Property values by name (or key) |
| replace | boolean | Replace everything in the target list with this shader |
| shaderId | string | Shader id from figma_list_shaders. Optional when index points at a shader already applied |
| target | string | |
| visible | boolean |
figma_arrange_component_setOrganize a component set with Figma's native purple dashed visualization. Use after creating variants, adding states (hover/disabled/pressed), or when component sets need cleanup. Non-destructive: rearranges the existing variants in place (grid positions on the existing set's children), so the component set keeps its node ID and all placed instances remain intact. Arranges variants in a labeled grid (columns = last property like State, rows = other properties like Type+Size) and wraps the set in a white container with title, row/column labels. Safe to run on component sets with placed instances, and safe to re-run.| Parameter | Type | Description |
|---|---|---|
| componentSetId | string | Node ID of the component set to arrange. If not provided, will look for a selected component set. |
| componentSetName | string | Name of the component set to find. Used if componentSetId not provided. |
| options | object | Gap between grid cells in pixels (default: 24) |
figma_audit_adherenceCheck a built frame against the design system: hand-built look-alikes of components and new components (errors), hand-drawn vectors, values not bound to variables or styles, instance style overrides, and GAP notes (must explain themselves; a note for a component the system has is an error). Returns componentCoverage, tokenCoverage, a 0–100 score and pass/fail (minScore default 90; any error fails). libraryFileKeys also fails instances from other libraries.| Parameter | Type | Description |
|---|---|---|
| allowLocal | boolean | With libraryFileKeys: also allow components defined in this file. Default true. |
| fileKey | string | Run against this connected file instead of the active one. |
| libraryFileKeys | array | If set, instances must come from these published libraries (or the file itself if allowLocal); anything else is off-system. |
| maxFindings | number | Findings returned (sorted by severity). Default 100. |
| maxNodes | number | Walk limit. Default 5000. |
| minScore | number | Pass threshold for the 0–100 score. Default 90. |
| nodeId | string | Root of the composition to audit. Defaults to the single selected node. |
figma_audit_code_adherenceCheck generated CODE against the design system — the code-side twin of figma_audit_adherence and the evidence for an independent grader. Flags: re-implementing a component the system already has (error), references to tokens that don't exist (error, when tokensPath/tokens is given), raw <button>/<input>/<select>/<textarea>/<dialog>/<table> where the system has a component, hardcoded colors and spacing/radius/type lengths instead of tokens, Tailwind arbitrary values like bg-[#fff] or p-[13px], and inline styles. Counts system component usage from imports of designSystem.packages. Returns componentCoverage, tokenCoverage, a 0–100 score and pass/fail (minScore, default 90; any error fails), with file:line for every finding. Static and deterministic. Pass files (local paths) or sources ({path, content}).| Parameter | Type | Description |
|---|---|---|
| designSystem | object | Import sources that are the design system, e.g. ["@acme/ui", "@/components/ui"]. |
| files | array | Local file paths to check (Local Mode). |
| maxFindings | number | Findings returned. Default 100. |
| minScore | number | Pass threshold. Default 90. |
| sources | array | Inline file contents (works in every mode). |
figma_audit_code_connectfigma_audit_component_accessibilityDeep accessibility audit for a specific component or component set. Produces a scorecard covering: state coverage (default/hover/focus/disabled/error/active/loading), focus indicator quality and contrast, non-color differentiation (WCAG 1.4.1), target size consistency (WCAG 2.5.8), annotation completeness, and color-blind simulation (protanopia/deuteranopia/tritanopia). Returns per-category scores (0-100) and prioritized recommendations. Use after designing a component to validate accessibility before handoff. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| nodeId | string | Node ID of a COMPONENT_SET, COMPONENT, or INSTANCE to audit. Falls back to current selection if omitted. |
| targetSize | number | Minimum touch target size in px (default: 24 per WCAG 2.5.8). Use 44 for iOS or 48 for Android guidelines. |
figma_audit_design_system_reportRun the design-system health audit and return the scored report as data (no UI required). Same deterministic engine as the Design System Dashboard app: naming & semantics, token architecture, component metadata, accessibility, consistency, coverage — each 0-100 plus a weighted overall. Start with the default summary, then drill into one category at a time via `category` (chunked; avoids one giant payload). Results are cached ~5 minutes; pass forceRefresh after editing the file. Every finding includes whether this MCP can fix it (design-side write tools vs. design decision vs. manual).| Parameter | Type | Description |
|---|---|---|
| category | string | Return full findings (including passes, examples, locations) for ONE category — the chunked drill-down path after a summary call. |
| fileUrl | string | Figma file URL. If not provided, uses the currently active file. |
| forceRefresh | boolean | Bypass the 5-minute audit cache and re-crawl the file. Only needed after editing the file. |
| format | string | 'summary' (default) — bounded readable report: overall + category scores + non-pass findings + remediation. 'full' — complete scored JSON (examples/locations clamped); prefer per-category calls over 'full' when working interactively. |
figma_batch_create_variablesCreate multiple variables in one operation. Use instead of calling figma_create_variable repeatedly — up to 50x faster for bulk operations. Get collection IDs from figma_get_variables first. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | Collection ID to create all variables in (e.g., 'VariableCollectionId:123:456') |
| variables | array | Variable name (e.g., 'primary-blue') |
figma_batch_update_variablesUpdate multiple variable values in one operation. Use instead of calling figma_update_variable repeatedly — up to 50x faster for bulk updates. Get variable/mode IDs from figma_get_variables first. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| updates * | array | Variable ID (e.g., 'VariableID:123:456') |
figma_bind_tokensBind a node's spacing, radius, size, stroke weight, opacity and typography to EXISTING variables, and apply a text or effect style, by name or id. Fields: padding, paddingX, paddingY, gap, cornerRadius (shorthands) or exact ones (paddingLeft, itemSpacing, topLeftRadius, width, minWidth, strokeWeight, opacity; on text fontSize, fontFamily, lineHeight, letterSpacing…). Colors go through figma_set_fills / figma_set_strokes. Never creates tokens: an unknown name fails with the closest real names — report the missing token instead of using a raw value. Local variables only (import library ones first).| Parameter | Type | Description |
|---|---|---|
| bindings | object | Field → variable name or id, e.g. { "padding": "spacing/md", "gap": "spacing/sm", "cornerRadius": "radius/lg" }. |
| effectStyle | string | Local effect style name or id. |
| fileKey | string | Run against this connected file instead of the active one. |
| nodeId * | string | Node to bind. |
| textStyle | string | Local text style name or id (text nodes). |
figma_blame_nodeFind the version that introduced a specific change to a node — answers 'who/when added this'. Walks version history backward via binary search (~log2(N) API calls instead of N) to localize the introduction point. Returns the version's metadata (label/author/timestamp). Default includes autosaves for finer attribution; system 'Figma' user appears occasionally for scheduled snapshots and is flagged via attribution_certainty='system_attributed'. Specify EXACTLY ONE of target_component_property or target_child_node_id. node_id is optional — if omitted, falls back to the first node in the current Figma selection.| Parameter | Type | Description |
|---|---|---|
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| include_autosaves | boolean | Include auto-saved versions in the search range. Default true (better attribution accuracy; most autosaves carry the real human user). |
| max_versions_to_walk | number | Lookback cap. Binary search probes ~log2(N) of these. Default 200, max 500. |
| node_id | string | The parent node ID to inspect (typically a COMPONENT_SET). If omitted, falls back to the first node in the current Figma selection. |
| start_version | string | Version to walk backward from. Default 'current' (HEAD). |
| target_child_node_id | string | A descendant node ID — find when this child was first added under node_id. |
| target_component_property | string | A componentPropertyDefinitions key (e.g. 'Disabled#1:2') — find when this property was first added to the node. |
figma_callRun a tool from an enabled toolset by name, if your tool list didn't refresh after figma_enable_toolsets. Core tools and tools that delete or overwrite can't be run this way: call those directly, so your client's per-tool permissions apply.| Parameter | Type | Description |
|---|---|---|
| arguments | string | The tool's arguments as a JSON object string, e.g. '{"format":"css"}'. |
| tool * | string | Tool name, e.g. figma_get_styles. |
figma_capture_screenshotScreenshot a node (or the current page) from the live plugin state, so it reflects changes made a moment ago. PNG at 1x by default, capped at 1568px on the longest side. For files to use in code, use figma_export_assets.| Parameter | Type | Description |
|---|---|---|
| format | string | PNG (default), JPG for photos/gradients, or SVG. |
| nodeId | string | Node to capture (default: current page). |
| scale | number | Scale (default 1; capped at 1568px). |
figma_check_design_parityCompare a Figma component's design specs against code-side data to find discrepancies. Returns a parity score, categorized discrepancies, and actionable fix items for both design-side (Figma tool calls) and code-side (file edits). Read the component source code first, then pass the data in codeSpec.| Parameter | Type | Description |
|---|---|---|
| canonicalSource | string | Which source is the canonical truth. Fixes will target the other side. Default: 'design' |
| enrich | boolean | Enable token coverage and enrichment analysis. Default: true |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| nodeId * | string | Component node ID (e.g., '695:313') |
figma_check_library_parityLibrary-level parity between a Figma component library and its code counterpart: which components exist on both sides, which are only in Figma, and which are only in code. Pairs by exact name, then the same words ignoring case/punctuation/folders, then the same UI concept (only when unambiguous, so nothing is force-paired). Archived/deprecated/private Figma components are listed separately, not counted as missing. Figma side: the active file's components (default) and/or published libraries (libraryFileKeys, REST). Code side: componentsDir (file names, Local Mode) and/or a components list. With manifestPath (Custom Elements Manifest) or — for React libraries — componentsDir alone (cva variants and literal-union/boolean props read from source), each pair is also compared prop by prop. Then use figma_check_design_parity on a pair for visual specs. Deterministic; it reports differences and decides nothing.| Parameter | Type | Description |
|---|---|---|
| classPrefixes | array | Class-name prefixes to strip when matching, e.g. ["AL"] for ALButton → Button. |
| components | array | Code component names (alternative or addition to componentsDir). |
| componentsDir | string | Folder of the code library's component files, e.g. "src/components/ui" (Local Mode). |
| contractsDir | string | Folder of component contract files (*.contract.json with props[].bindings.figma.omit / pairWith) — decisions already on record: omitted props aren't drift, and recorded pairings beat automatic matching. Local Mode. |
| decisions | object | Code props deliberately not in Figma. |
| includeLocal | boolean | Include components defined in the active Figma file. Default true. |
| libraryFileKeys | array | Published Figma library file keys (REST). |
| manifestJson | string | The manifest's contents, as an alternative to manifestPath (any mode). |
| manifestPath | string | custom-elements.json (Custom Elements Manifest) of the code library — enables property-level parity: Figma variant axes and component properties vs. code props and slots. React wrappers built with @lit/react share these props. Local Mode. |
figma_clear_consolefigma_clone_nodeDuplicate a node. The clone is placed at a slight offset from the original.| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | The node ID to clone |
figma_create_childCreate a new child node inside a parent container. Always place inside an existing Section or Frame — never on a bare page. If no suitable parent exists, create a Section first. Clean up any empty or orphaned nodes if the operation fails.| Parameter | Type | Description |
|---|---|---|
| nodeType * | string | Type of node to create |
| parentId * | string | The parent node ID |
| properties | object | Name for the new node |
figma_create_component_setCreate a component set with variants in one call — replaces hand-written figma.combineAsVariants scripts. Two modes: 1. **Generate from a base component**: pass baseComponentId + properties (variant axes). The base is cloned for every combination of the axes ({ State: ['default','hover','disabled'], Size: ['sm','lg'] } → 6 variants), each named 'Prop=Value' comma-joined (e.g. 'State=hover, Size=sm'), then combined into a set. The base component itself becomes the FIRST variant (same node ID), so existing instances of the base survive as instances of that variant. 2. **Combine existing components**: pass componentIds, optionally with variantProperties (aligned 1:1) to rename each component to Prop=Value form before combining. Figma derives the variant property definitions from the names; they live on the SET (componentPropertyDefinitions), not on individual variants. The result includes each variant's key — instantiate with a VARIANT's key/nodeId via figma_instantiate_component, not the set's key. Set autoArrange:true to lay the new set out as a labeled grid inside a white container (same layout as figma_arrange_component_set). Requires Desktop Bridge plugin. SIZE GUIDANCE: hard cap 100 variants. The timeout auto-scales with variant count (~1.2s/variant, 30s floor / 2min cap), but above ~40 variants the single-pass clone+combine gets slow and heavy base components may still push the limit — prefer splitting large matrices into multiple sets (e.g. one set per Size).| Parameter | Type | Description |
|---|---|---|
| arrangeOptions | object | Gap between grid cells in pixels (default: 24) |
| autoArrange | boolean | If true, arrange the new set in a labeled grid (columns = last property, rows = other properties) inside a white container — same in-place layout as figma_arrange_component_set. |
| baseComponentId | string | Node ID of an existing COMPONENT to use as the base. Cloned per property combination; becomes the set's first variant (keeps its node ID, so placed instances survive). Mutually exclusive with componentIds. |
| componentIds | array | Node IDs of existing COMPONENT nodes to combine as variants. Mutually exclusive with baseComponentId. Components already inside a component set are rejected. |
| name | string | Name for the component set (e.g., 'Button'). Defaults to Figma's derived name. |
| parentId | string | Node ID of the container (frame/section) to create the set in. Defaults to the current page. |
| position | object | Position of the set within its parent. |
| properties | object | Variant property axes — required with baseComponentId. Example: { State: ['default','hover','disabled'], Size: ['sm','lg'] } creates 6 variants. Max 100 combinations. Names and values must not contain '=' or ','. |
| variantProperties | array | Only with componentIds: one property map per component, aligned by index — e.g. [{ State: 'default' }, { State: 'hover' }]. Each component is renamed to 'Prop=Value, ...' before combining. Without this, existing names are kept (names lacking '=' become 'Property 1=<name>'). |
figma_create_slideCreate a new blank slide| Parameter | Type | Description |
|---|---|---|
| col | number | Column index in the slide grid (0-based) |
| row | number | Row index in the slide grid (0-based) |
figma_create_slotCreate a SlotNode inside a component using createSlot(). Automatically creates a linked SLOT component property named after the slot (renaming the slot renames the property). Slots are freeform drop zones for instance content — more flexible than INSTANCE_SWAP. Works on standalone COMPONENTs and variant COMPONENTs inside a COMPONENT_SET (call once per variant). GRID layout is not allowed on slots. Requires Desktop Bridge.${FILE_KEY_DOC}| Parameter | Type | Description |
|---|---|---|
| height | number | Initial slot height in pixels |
| layoutMode | string | Auto-layout mode for the slot (GRID is not supported) |
| name | string | Slot layer name (e.g. 'Content', 'Footer') |
| nodeId * | string | The COMPONENT node ID to add a slot to |
| width | number | Initial slot width in pixels |
figma_create_variableCreate a single Figma variable. For multiple variables, use figma_batch_create_variables instead (10-50x faster). Use figma_get_variables first to get collection IDs. Supports COLOR, FLOAT, STRING, BOOLEAN, and motion TIMING/EASING. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | The collection ID to create the variable in (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |
| description | string | Optional description for the variable |
| name * | string | Name for the new variable (e.g., 'primary-blue') |
| resolvedType * | string | The variable type: COLOR, FLOAT, STRING, BOOLEAN, or the motion types TIMING and EASING. ${MOTION_VALUE_DOC} |
| valuesByMode | object | Optional initial values by mode ID. Example: { '1:0': '#FF0000', '1:1': '#0000FF' } |
figma_create_variable_collectionCreate an empty variable collection. To create a collection WITH variables and modes in one step, use figma_setup_design_tokens instead. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| additionalModes | array | Additional mode names to create. Example: ['Dark', 'High Contrast'] |
| initialModeName | string | Name for the initial mode (default mode is created automatically). Example: 'Light' |
| name * | string | Name for the new collection (e.g., 'Brand Colors') |
figma_delete_commentDelete a comment from a Figma file by its comment ID. Use figma_get_comments to find comment IDs first.| Parameter | Type | Description |
|---|---|---|
| comment_id * | string | The ID of the comment to delete. Get IDs from figma_get_comments. |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
figma_delete_component_propertyDelete a component property. Works with BOOLEAN, TEXT, INSTANCE_SWAP, and SLOT properties (not VARIANT). This is a destructive operation.| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | The component or component set node ID |
| propertyName * | string | The full property name with suffix (e.g., 'Show Icon#123:456') |
figma_delete_nodeDelete a node from the canvas. WARNING: This is a destructive operation (can be undone with Figma's undo).| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | The node ID to delete |
figma_delete_slideDelete a slide from the presentation| Parameter | Type | Description |
|---|---|---|
| slideId * | string | The node ID of the slide to delete |
figma_delete_variableDelete a Figma variable. WARNING: This is a destructive operation that cannot be undone (except with Figma's undo). Use figma_get_variables first to get variable IDs. Requires the Desktop Bridge plugin to be running.| Parameter | Type | Description |
|---|---|---|
| variableId * | string | The variable ID to delete (e.g., 'VariableID:123:456'). Get this from figma_get_variables. |
figma_delete_variable_collectionDelete a Figma variable collection and ALL its variables. WARNING: This is a destructive operation that deletes all variables in the collection and cannot be undone (except with Figma's undo). Requires the Desktop Bridge plugin to be running.| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | The collection ID to delete (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |
figma_diagnoseDesigner-readable health check for ${MCP_NAME}. Use this when something seems wrong — it self-identifies the server, reports plugin connection / file / token status in plain language, and disambiguates errors that may be coming from a different Figma-related MCP server. Recommended as the first step when a user reports a "token expired" or "plugin disconnected" issue.| Parameter | Type | Description |
|---|---|---|
| verbose | boolean | Include the raw structured state alongside the human-readable report. |
figma_diff_versionsDiff two versions of a Figma file. Always returns a cheap page-structure diff (added/removed/renamed pages, 2 API calls). Pass component_ids to additionally get per-node deep diffs at depth=2 (added/removed children, name/description changes, componentPropertyDefinitions changes for COMPONENT_SETs, boundVariables deltas) — costs 2 API calls per scoped node. Use 'current' for to_version to diff against HEAD. v1.25.0: when the Desktop Bridge plugin is connected, description and Dev Mode annotation changes are ALSO tracked via a session buffer and surfaced under `scoped_nodes[].metadata_changes[]` and `unscoped_metadata_changes[]` — Figma REST omits these from version snapshots so they're otherwise invisible. STILL NOT tracked: instances of components on the canvas, raw layout properties (layoutSizingHorizontal/Vertical, unbound paddings/widths), raw visual properties (cornerRadius, unbound fills), variable VALUE changes, style content, and metadata edits made while the plugin was disconnected. See `scope_coverage` and `notes[]` for the full coverage map and complementary tools.| Parameter | Type | Description |
|---|---|---|
| component_ids | array | Optional. Node IDs (typically COMPONENT_SETs) to diff in detail. If omitted, falls back to the current Figma selection. If neither is available, only the page-structure diff is returned. Use figma_get_design_system_kit or figma_search_components to discover IDs explicitly. |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| from_version * | string | The earlier version_id to compare from. Get from figma_get_file_versions. |
| mode | string | Output verbosity. summary=counts only, standard=names+counts (default), detailed=full property/binding details. |
| to_version * | string | The later version_id to compare to. Use 'current' for HEAD. |
figma_ds_analyzeAnalyze one or more production app codebases as the first step of design system extraction. Detects framework (React/Next/Angular/Web Components), styling methods (Tailwind v3/v4, CSS Modules, SCSS, Emotion, styled-components), and vendor component layers (shadcn/ui, Radix, MUI, Chakra, etc.); builds a component inventory with per-component classification (vendored / wrapped / pure-vendor / bespoke), prop contracts, real usage counts (porting rank), observed prop values (variant inference), and duplicate detection. Pass multiple targets to find the shared design language across several apps. Writes the full manifest to <outDir>/.extraction/analysis.json and returns a compressed summary — read slices of the manifest for detail. Run this before figma_ds_extract_tokens and figma_ds_scaffold. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| exclude | array | Substring filters on relative paths to skip (node_modules, dist, .next etc. are always skipped). |
| include | array | Substring filters on relative paths — when set, only matching files are scanned (e.g. ['src/', 'app/']). |
| maxFiles | number | Hard cap on files scanned per target (default 5000). |
| outDir | string | Directory where the design-system package will be generated (manifests persist under <outDir>/.extraction/). Default: '<first target>/design-system'. |
| targets * | array | App root directories to analyze. Absolute paths strongly recommended (the MCP server's working directory is not the project). Multiple targets = cross-app extraction: the inventory merges and duplicate components across apps are flagged. |
figma_ds_extract_componentDeep-extract ONE component from the inventory for porting into the design system: returns its source (capped), local import closure (relative imports to follow), prop contract, observed call-site variants, vendor classification, style touchpoints (classNames, CSS-module imports, custom properties referenced), and a ready-to-adapt CSF3 story scaffold with variant stories inferred from real usage. The agent then ports the component into <outDir>/src/components/<Name>/ and records progress with figma_ds_status. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| component * | string | Component name from the inventory (see figma_ds_analyze topByUsage, or the analysis manifest for the full list). |
| outDir * | string | The outDir used in figma_ds_analyze (manifest is read from it). |
figma_ds_extract_tokensExtract design tokens from analyzed codebases into canonical DTCG JSON (plus optional CSS variables / Tailwind / SCSS / TypeScript projections). Mines declared styling intent first — :root and @theme custom properties (light+dark → multi-mode tokens), SCSS variables, tailwind.config theme values, shadcn HSL triples — then promotes recurring raw values (hex colors, spacing/radius/font sizes) above a frequency threshold. Every token carries provenance (source file:line, confidence, frequency) in $extensions. Names are structural as-mined; do a semantic-naming review pass with the user afterwards. The DTCG output is directly importable into Figma variables with figma_import_tokens (top-level groups become collections). Requires figma_ds_analyze to have run for the same outDir. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| dtcgDialect | string | DTCG dialect: 'legacy' hex-string colors (max compatibility) or '2025' DTCG 2025.10 object colors/dimensions. |
| formats | array | Token file formats to write under <outDir>/tokens/. 'dtcg' (canonical) is always written. Match the app's styling method — e.g. add 'tailwind-v4' for a Tailwind app, 'scss' for SCSS. |
| minFrequency | number | How often a raw (undeclared) value must recur to be promoted to a token (default 4). Values below the threshold are listed in the report for review. |
| outDir | string | The outDir used in figma_ds_analyze (reads .extraction/analysis.json from it). Default: '<first target of the analysis run>/design-system' — pass explicitly when in doubt. |
| targets | array | Override: scan these app roots instead of the analysis manifest's targets (rarely needed). |
| write | boolean | Write token files to <outDir>/tokens/ (default true). False returns the DTCG document inline instead (dry run). |
figma_ds_scaffoldGenerate the design-system package skeleton at outDir from a completed analysis + token extraction: package.json (app framework as peer deps), src/components layout, token files via the shared formatter engine, a framework-neutral token-showcase MDX docs page (the bird's-eye view), and a README with the workflow. Storybook itself is NOT installed by this tool — after scaffolding, run `npm create storybook@latest` inside outDir (the CLI auto-detects the framework and installs the current Storybook version). Additive by default: existing files are skipped unless force. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| dtcgDialect | string | DTCG dialect for dtcg/json outputs. |
| force | boolean | Overwrite existing scaffold files (token files always refresh). |
| formats | array | Token formats to (re)generate under tokens/. |
| framework | string | Override the scaffold framework. Default: the first framework detected by figma_ds_analyze. Note: Storybook has no .astro renderer — 'astro' scaffolds a react-vite workshop whose stories mirror the component markup. |
| outDir * | string | The outDir used in figma_ds_analyze / figma_ds_extract_tokens. |
| packageName | string | npm package name for the design system (e.g. '@acme/design-system'). Default: '@extracted/design-system'. |
figma_ds_setup_storybookWire a freshly-initialized Storybook workshop to the extracted design system — run AFTER `npm create storybook@latest` inside outDir. Generates .storybook/preview.css (Tailwind entry importing the extracted tokens plus the SOURCE app's @theme utility mapping, custom @utility definitions, @layer base, and @font-face rules mined from its stylesheets, with a dark variant covering both .dark and [data-theme] conventions), copies self-hosted font files into staticDirs, and patches main.js (tailwind vite plugin + automatic JSX runtime — without it stories throw 'React is not defined') and preview.jsx (preview.css import + a theme toolbar/decorator using the extracted mode names). Idempotent; anything it can't patch safely is returned as a manual step. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| outDir * | string | The design-system package dir (same outDir as figma_ds_analyze) containing the freshly-initialized .storybook/. |
figma_ds_statusRead or update design-system extraction porting progress (persisted in <outDir>/.extraction/status.json so long engagements survive session boundaries). Call with only outDir to get a progress summary; pass update to record a component's porting status. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| outDir * | string | The outDir used in figma_ds_analyze. |
| update | object | Component name from the inventory. |
figma_ds_verifyRun the deterministic fidelity evals on an extracted design system package — the governance gate before handing off or pushing to Figma. Checks: tokens.json parses as DTCG and every alias resolves (import-ready); no quoted CSS functional expressions in generated token files (kills transitions); every var() consumed in component/preview CSS resolves in the workshop; every component directory has a stories file and index barrel; every portable inventory component has a porting status. Each check encodes a failure class found in real extraction runs. Also reports Figma round-trip readiness with the exact figma_import_tokens call for design-led orgs (ask the user code-led vs design-led). Local Mode only.| Parameter | Type | Description |
|---|---|---|
| outDir * | string | The design-system package dir (same outDir as figma_ds_analyze). |
figma_duplicate_slideClone an existing slide| Parameter | Type | Description |
|---|---|---|
| slideId * | string | The node ID of the slide to duplicate |
figma_edit_component_propertyEdit an existing component property. Can change the name, default value, or preferred values (for INSTANCE_SWAP). Use the full property name including the unique suffix.| Parameter | Type | Description |
|---|---|---|
| newValue | object | New name for the property |
| nodeId * | string | The component or component set node ID |
| propertyName * | string | The full property name with suffix (e.g., 'Show Icon#123:456') |
figma_enable_toolsetsSwitch on more tools when a task needs them (the core set covers finding, building, binding, auditing). Toolsets: ${catalog}| Parameter | Type | Description |
|---|---|---|
| toolsets * | array | Toolsets to switch on. |
figma_executeRun JavaScript in the Figma plugin context (full figma API) for anything other tools don't cover. Can modify the document. - Instances: change content with figma_set_instance_properties; editing text inside an instance fails silently. - Check resultAnalysis.warning for silent failures (empty or null results). - Before creating, screenshot the page and pick clear space; build inside a named Section or Frame, never overlapping existing work. Screenshot after. - Reuse an existing page with the same name instead of creating another. On failure, remove partial artifacts (node.remove()) before retrying. - fileKey runs it in another open file without changing the active one (Local Mode).| Parameter | Type | Description |
|---|---|---|
| code * | string | Code with the 'figma' global; return a value, e.g. 'return figma.currentPage.selection.length;' |
| fileKey | string | Local Mode: run in this open file (see figma_list_open_files) without changing the active file. |
| timeout | number | Timeout in ms (default 5000, max 300000). |
figma_execute_across_filesRun the same JavaScript against multiple Figma files connected via the Desktop Bridge plugin, IN PARALLEL, without touching the active file or target lock. Built for cross-file consistency work — e.g. running the same structural check or fix against every file in a multi-file design system and diffing the results — instead of switching the active file and running figma_execute once per file in sequence. Each file's code runs in that file's own plugin context (same 'figma' global as figma_execute). You must say which files to target: pass fileKeys (read them from figma_list_open_files first — strongly preferred for anything that writes), or pass allFiles: true to hit every connected file. Requires Desktop Bridge plugin open in each target file. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| allFiles | boolean | Run against EVERY currently connected file. Opt-in on purpose: this executes the code in files the user may be actively working in, including any file pinned by target lock. Prefer naming fileKeys explicitly for anything that writes. |
| code * | string | JavaScript code to execute in each targeted file. Has access to the 'figma' global object, same as figma_execute. Example: 'return { pageCount: figma.root.children.length };' |
| fileKeys | array | Which connected files to target, by fileKey. Get fileKeys from figma_list_open_files. Required unless allFiles is true. |
| timeout | number | Per-file execution timeout in milliseconds (default: 10000, max: 30000). Applies independently to each file — one slow/unresponsive file does not delay the others. |
figma_export_animationExport an animated frame as MP4, GIF or WebM. The node should be the frame that holds the Motion timeline (its top-level frame).${ options.allowFileWrite ? " The file is written to outputPath (default: the OS temp folder) and the path is returned. An existing file is never replaced unless overwrite is true." :| Parameter | Type | Description |
|---|---|---|
| format * | string | |
| fps | number | MP4/WebM: 12, 24, 30 or 60. GIF: 8, 12, 15, 24 or 30 |
| height | number | Output height in px |
| loopCount | number | GIF loops (0 = forever) |
| nodeId | string | Frame to export. Defaults to the current selection |
| quality | string | MP4/WebM quality |
| scale | number | 0.5, 0.75, 1, 1.5, 2, 3 or 4. Use scale, width or height, not several |
| width | number | Output width in px |
figma_export_assetsExport layers for code: PNG, JPG, SVG or PDF renders of up to 50 nodes, the SVGs of icon and logo layers found inside them (vectors), and the original image files behind image fills (images). Renders come from the live file through the Desktop Bridge (any plan, no token, includes unsaved changes). With no format or scale, each node uses its own Export panel settings, or PNG at 1x. Local Mode writes files to outputDir (default: a new temp folder) and returns their paths; existing files are kept unless overwrite is true. output "inline" returns PNG/JPG as images you can see, SVG as text (96 KB per call by default) and small PDFs; output "urls" returns Figma-hosted links (needs a Figma token; renders the last saved version; render and vector links expire after 30 days, image-file links within 14). Cloud Mode: inline or urls. svg.currentColor makes single-color icons recolorable in code. To just look at a design, use figma_capture_screenshot. Call this tool directly.| Parameter | Type | Description |
|---|---|---|
| colorProfile | string | |
| contentsOnly | boolean | Only the node, not overlapping layers (default true). |
| fileKey | string | Local Mode: export from this open file. Rejected in Cloud Mode. |
| fileName | string | File name template without extension. Tokens: {name}, {path}, {leaf}, {set}, {variant}, {id}, {page}. '/' in the template makes subfolders. Default '{name}'. |
| format | string | Overrides each node's Export settings. Omit to use them (PNG 1x when a node has none). |
| height | number | PNG/JPG: exact output height in px. |
| imageHashes | array | Export these original images directly (imageHash from a node's fills). |
| images | string | Also export the original image files used as image fills inside these nodes (include), or only those (only). Default none. |
| inlineSvgKB | number | output inline: SVG text budget per call in KB (default 96). |
| nodeIds | array | Nodes to export ('123:456' or '123-456'). Default: the current selection. |
| output | string | files (Local Mode default), inline (Cloud Mode default), or urls (Figma-hosted links; needs a token). |
| outputDir | string | Local Mode only: absolute folder to write into. Default: a new folder in the OS temp directory. |
| overwrite | boolean | Replace existing files (default false). |
| scale | number | PNG/JPG scale; overrides Export settings. |
| svg | object | Text as outlines (default true) or <text>. |
| useAbsoluteBounds | boolean | Full node bounds even if cropped or empty (default false). |
| vectors | string | Also export the vector layers inside these nodes that are best kept as SVG (icons, logos), as SVG files (include), or only those (only). Default none. |
| width | number | PNG/JPG: exact output width in px. |
figma_export_tokensExport Figma variables to design token files in your codebase. Bidirectional with figma_import_tokens — together they replace Style Dictionary and Tokens Studio's export pipeline for the popular styling methods. FULLY-IMPLEMENTED OUTPUT FORMATS: • dtcg — W3C DTCG JSON. Canonical pivot format. Round-trip safe via `$extensions["figma-console-mcp"]`. • css-vars — CSS custom properties with mode-aware selectors (`:root`, `.dark`, `[data-theme=...]`). • tailwind-v4 — Tailwind v4 `@theme inline` block. Token-to-namespace mapping (color/*, spacing/*, radius/*, etc.) generates Tailwind utility classes. • tailwind-v3 — `tailwind.config.js` theme.extend object grouped under Tailwind's theme keys (colors, spacing, fontFamily, etc.). • scss — `$var: value;` declarations. Multi-mode emits a primary variable + a mode-keyed SCSS map for runtime access. • ts-module — `export const tokens = { ... } as const` with derived `Tokens` type. Multi-mode tokens emit as `{ Light: ..., Dark: ... }` objects. • json-flat — flat key-value JSON (`{"ds-color-primary": "#4085F2"}`) for custom build scripts. • json-nested — nested object JSON mirroring the token path tree. • style-dictionary-v3 — SD v3 source format with bare `value`/`type` keys (back-compat for existing SD users). • tokens-studio — Tokens Studio multi-file layout (`$themes.json` + `$metadata.json` + per-set files). Preserves Figma collection/mode bindings for round-trip with the TS plugin. ZERO-ARG USAGE: With a tokens.config.json at your project root, just call the tool with no args — it picks up source dir, output formats, modes, prefix, etc. from config. See the response's `suggestedScaffold` payload when no config is detected — present it to the user, write the scaffold via your file tools, then call again. WRITE SAFETY: Export REPLACES the contents of each target file with the current Figma state — it does not merge into it. Under the default `strategy: "merge"` the tool refuses to write (and changes nothing) when overwriting an existing DTCG file would delete tokens it does not manage: tokens added by hand, or tokens from collections outside this export. It also refuses when a requested collectionId is not in the file it read, or when the export is empty — both usually mean a different file is active in Figma than you intended. Variables deleted in Figma are removed from the file as normal. Use `dry-run` to preview, `replace` to overwrite unconditionally. Generated files record the Figma file they came from (a `Source: Figma file <key>` header line; `figmaFileKey` in DTCG), and the default strategy also refuses to overwrite a file that was generated from a DIFFERENT Figma file. Plain-JSON formats (json-flat, json-nested, style-dictionary-v3, tokens-studio) cannot carry that record — pin `figmaFile` in tokens.config.json for a hard guarantee. Every response includes `source` (the Figma file name/key the data was read from) — check it. DTCG DIALECT (`dtcgDialect`, applies to dtcg/json-flat/json-nested outputs): legacy (default): hex-string colors, maximum compatibility (Style Dictionary v4, Tokens Studio). 2025: DTCG 2025.10 object colors/dimensions (Style Dictionary v5+). figma_import_tokens accepts BOTH dialects regardless of this setting. ROUND-TRIP SAFETY: Figma variable IDs are preserved in DTCG `$extensions["figma-console-mcp"]` so renames on either side don't create duplicates. The same metadata enables non-destructive incremental sync via figma_import_tokens. Variable scopes (when non-default) and per-platform codeSyntax (when set) are stashed there too and round-trip through import.figma_extend_library_collectionCreate an extended collection (Enterprise): it inherits every variable of a library collection (collectionKey) or of one of this file's own collections (collectionId), and overrides values per mode, e.g. a brand or product theme. With neither, lists both kinds. Set override values afterwards with figma_update_variable on the extension's modes; undo one with figma_reset_variable_override.| Parameter | Type | Description |
|---|---|---|
| collectionId | string | Id of one of this file's own collections (from the listing). |
| collectionKey | string | Library collection key (from the listing). |
| fileKey | string | Local Mode: run in this open file without changing the active file. |
| name | string | Name for the extended collection. |
figma_find_usagesWhere is a style, variable or component used in this file? Use before renaming, changing or retiring a design-system asset. Returns the total and a sample of the nodes (with page and bound field).| Parameter | Type | Description |
|---|---|---|
| fileKey | string | Local Mode: run in this open file without changing the active file. |
| id * | string | Style id, variable id (VariableID:…), or component / component set node id. |
| kind * | string | |
| maxNodes | number | variable: nodes to scan before stopping (default 50000). |
| sample | number | Nodes to list (default 25). |
figma_focus_slideNavigate to a specific slide| Parameter | Type | Description |
|---|---|---|
| slideId * | string | The node ID of the slide to focus |
figma_generate_changelogGenerate a human-readable markdown changelog between two versions. Wraps figma_diff_versions and enriches the output with author labels and timestamps via figma_get_file_versions lookback (one extra cheap API call). Returns BOTH a `markdown` string (paste into release notes / PRs / Storybook MDX) and the structured diff data. Same component_ids and mode semantics as figma_diff_versions. Use 'current' for to_version to changelog against HEAD.| Parameter | Type | Description |
|---|---|---|
| component_ids | array | Optional. Node IDs to include in the per-component changelog section. If omitted, falls back to the current Figma selection. |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| from_version * | string | The earlier version_id. Get from figma_get_file_versions. |
| mode | string | Output verbosity. summary=one-liner, standard=sectioned with counts (default), detailed=full per-property/per-binding bullets. |
| to_version * | string | The later version_id. Use 'current' for HEAD. |
figma_generate_code_connectfigma_generate_component_docGenerate AI-complete component documentation from a Figma component. Produces structured markdown with anatomy, per-variant color tokens, typography, content guidelines (parsed from Figma description), design annotations (animation timings, interaction specs, accessibility notes from Dev Mode), icon mapping, spacing tokens, and design-code parity analysis. Merges Figma design data with optional code-side info (CVA definitions, sub-component APIs, source files). Output works with any docs platform. For richest output, read the component source code first and pass codeInfo. Pass history: { figma: true, git: true } to add an ongoing '## History' section: per-version design changes pulled from Figma version history and scoped to this component, plus recent git commits touching its source files.| Parameter | Type | Description |
|---|---|---|
| enrich | boolean | Enable enrichment for token data |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| history | object | Pull design history from Figma version history, scoped to this component. Costs roughly one API call per version walked. |
| includeFrontmatter | boolean | Include YAML frontmatter metadata |
| nodeId * | string | Component node ID (e.g., '695:313') |
| outputPath | string | Suggested output file path |
| sections | object | Toggle which sections to include |
| systemName | string | Design system name for headers |
figma_get_animationsRead a node's Motion animations: applied animation styles (Figma presets and custom styles, with their entries), manual keyframe tracks, timelines and the playhead. Easing comes back with a CSS equivalent (cubic-bezier) where one exists, and token bindings come back as EASING/TIMING variable references. Set includeDescendants to also list animated layers inside it. Requires Desktop Bridge and Figma Desktop with the Motion API (beta).| Parameter | Type | Description |
|---|---|---|
| includeDescendants | boolean | Also return animated layers inside the node |
| limit | number | Max descendants to return |
| nodeId | string | Node to read. Defaults to the current selection |
figma_get_annotation_categoriesList available annotation categories in the current Figma file. Categories group annotations by purpose (e.g., interactions, accessibility, development notes). Use the returned category IDs when creating annotations with figma_set_annotations. Requires Desktop Bridge plugin.figma_get_annotationsRead annotations from a Figma node. Annotations are designer-authored specs attached to nodes — they can include notes (plain text or markdown), pinned design properties (fills, width, fontSize, etc.), and category labels. Use this to discover animation timings, interaction specs, accessibility requirements, and other implementation details that designers annotate directly on the design. Set include_children=true to get annotations from child nodes too (useful for full component documentation). Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| depth | number | How many levels deep to traverse when include_children is true (default: 1, max recommended: 5) |
| include_children | boolean | Also read annotations from child nodes. Useful for getting all annotations within a component tree. |
| nodeId * | string | Node ID to read annotations from (e.g., '695:313') |
figma_get_changes_since_versionConvenience wrapper for figma_diff_versions: compares a given version against the current HEAD. Same output shape as figma_diff_versions, with to_version implicitly 'current'. Useful for 'what's changed since the last code-sync' workflows.| Parameter | Type | Description |
|---|---|---|
| component_ids | array | Optional. Node IDs to diff in detail. If omitted, falls back to the current Figma selection. Same semantics as figma_diff_versions otherwise. |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| mode | string | |
| since_version * | string | The version_id to compare against the current HEAD. |
figma_get_code_connect_mapfigma_get_code_layersFind code layers (Figma's React code layers, node type CODE_INSTANCE) on the current page or across the file, with position, size, page, and any dev resources or related links (e.g. the GitHub source). The Plugin API and REST API expose code layers as rendered layers only: their source and props can't be read or edited, and new code layers can't be created through them. Create or edit code layers in Figma, through a GitHub import, or with Figma's own MCP server (send_code_to_figma). Use figma_capture_screenshot with a code layer's id to see it. Figma only returns links while the file's window is focused; otherwise the result has linksUnavailable: true and omits them. Requires Desktop Bridge.| Parameter | Type | Description |
|---|---|---|
| fileKey | string | Local Mode only. Run against this connected file instead of the active file. Rejected in Cloud Mode. |
| limit | number | |
| scope | string | Search the current page (default) or every page |
figma_get_commentsGet comment threads on a Figma file. Returns threads (root comment + replies) sorted by latest activity, in a compact format by default (author handle, message, timestamps, pinned node, reaction counts). Narrow the result with an explicit node_id (includes comments pinned to nested nodes), thread_id or since, and page with limit/offset — files often have hundreds of comments. Use include_resolved to also see resolved threads and format='full' for raw Figma API objects.| Parameter | Type | Description |
|---|---|---|
| as_md | boolean | Return comment message bodies as markdown. Default: false |
| fileUrl | string | Figma file URL. Uses current URL if omitted. A node-id in the URL does not filter comments; use node_id explicitly. |
| format | string | 'compact' (default) — trimmed fields; 'full' — raw Figma API comment objects. |
| include_nested | boolean | With node_id: also match threads pinned to descendants of the node (one extra REST call). Default: true |
| include_resolved | boolean | Include resolved (completed) comment threads. Default: false (only active threads unless thread_id is given) |
| limit | number | Maximum threads to return. Default: 30 |
| node_id | string | Only threads pinned to this node (e.g. '695:313' or '695-313') or, with include_nested, to any node inside it. Omit or pass an empty string to return threads across the file. |
| offset | number | Threads to skip, for paging. Default: 0 |
| since | string | ISO date/time: only threads with a comment or reply created at or after it. |
| thread_id | string | Return only the thread containing this comment ID (root or reply), including resolved threads. |
figma_get_component| Parameter | Type | Description |
|---|---|---|
| enrich | boolean | Set to true when user asks for: design token coverage, hardcoded value analysis, or component quality metrics. Adds token coverage analysis and hardcoded value detection. Default: false. Only applicable for metadata format. |
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected. |
| format | string | Export format: 'metadata' (default) for comprehensive documentation, 'reconstruction' for node tree specification compatible with Figma Component Reconstructor plugin |
| nodeId * | string | Component node ID (e.g., '123:456') |
figma_get_component_for_developmentGet component data optimized for high-fidelity UI implementation. Returns a deep component tree (depth 4) with design tokens (boundVariables), interaction states (reactions), sizing constraints (min/max/layoutSizing), text behavior (autoResize, truncation), Figma slots (named freeform-content regions on a component, with the components each accepts and any min/max limit violations), and design annotations. Automatically includes 2x rendered image. Use when user asks to: 'build this component', 'implement this in React/Vue', 'generate code for', or needs both visual reference and technical specs for production-quality, accessible, token-aware code. For just metadata/descriptions, use figma_get_component. For just image, use figma_get_component_image. For full annotation details, use figma_get_annotations. To resolve variable IDs to names/values, use figma_get_variables. If the repo uses Code Connect, call figma_get_code_connect_map first to get your real components and snippets.| Parameter | Type | Description |
|---|---|---|
| codebasePath | string | Path to target codebase components directory (e.g., '/Users/me/project/src/components'). When provided, scans for existing components and includes a registry in the response to prevent recreating components that already exist. Strongly recommended for design-to-code workflows. |
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). REQUIRED unless figma_navigate was already called. |
| includeImage | boolean | Include rendered image for visual reference (default: true) |
| nodeId * | string | Component node ID to get data for (e.g., '695:313') |
figma_get_component_for_development_deepGet a deeply nested component tree with full visual properties, resolved design token names, instance references, prototype interactions, and annotations at every level. Uses the Desktop Bridge Plugin API for unlimited depth traversal — essential for complex components like data tables, nested menus, date pickers, and compound form fields where the standard depth-4 REST API tool misses deeper structure. Returns boundVariables resolved to actual token names (not just IDs), mainComponent references for INSTANCE nodes, and reactions for interaction states. Requires Desktop Bridge plugin. For simpler components (depth ≤ 4), use figma_get_component_for_development instead.| Parameter | Type | Description |
|---|---|---|
| css | boolean | Also return Figma's generated CSS (as Dev Mode shows it) for the node and up to 40 of its layers. |
| depth | number | Maximum tree depth to traverse (default: 10). Pass 0 (or a negative value) for UNLIMITED depth — traverses the entire subtree. Unlimited/large results can be big; target a specific child node if the payload is unwieldy. |
| nodeId * | string | Component node ID to extract (e.g., '695:313') |
figma_get_component_imageRender a specific component or node as an image (PNG, JPG, SVG, PDF). Returns image URL valid for 30 days. Use when user asks for: component screenshot, visual preview, rendered output, or 'show me'. NOT for component metadata/properties (use figma_get_component). NOT for getting code/layout data (use figma_get_component_for_development). Best for: visual references, design review, documentation. For files to use in code, use figma_export_assets.| Parameter | Type | Description |
|---|---|---|
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected. |
| format | string | Image format (default: png) |
| nodeId * | string | Component node ID to render as image (e.g., '695:313') |
| scale | number | Image scale factor (0.01-4, default: 2 for high quality) |
figma_get_console_logsRetrieve console logs from a Cloudflare Browser Rendering session opened with figma_navigate. Captures plugin console output ([Main], [Swapper], etc. prefixes) and page-level logs. NOTE: cloud mode does NOT currently capture logs from a paired Desktop Bridge plugin — for plugin sandbox logs, use Local mode. Call figma_navigate first to open the file and start browser monitoring.| Parameter | Type | Description |
|---|---|---|
| count | number | Number of recent logs to retrieve |
| level | string | Filter by log level |
| since | number | Only logs after this timestamp (Unix ms) |
figma_get_design_system_kitPREFERRED TOOL for design system extraction — replaces separate figma_get_styles, figma_get_variables, and figma_get_component calls. Returns tokens, components, and styles in a single optimized response with adaptive compression for large systems. Includes component visual specs (exact colors, padding, typography, layout), rendered screenshots, token values per mode (light/dark), and resolved style values. Use this instead of calling individual tools to avoid context window overflow. Ideal for AI code generation — use visualSpec for pixel-accurate reproduction. Variant specs are delta-encoded: the base variant carries the full visualSpec, siblings carry visualSpecDelta with only the properties that differ. Tokens/variables are read through the connected Desktop Bridge or cloud relay and work on ANY Figma plan — no Enterprise required. If a tokens fetch ever reports the Variables REST API is plan-limited (403), the bridge/relay is the plan-independent path: ensure it's connected and retry rather than abandoning variables.| Parameter | Type | Description |
|---|---|---|
| componentIds | array | Optional list of specific component node IDs to include. If omitted, all published components are returned. |
| fileKey | string | Figma file key. If omitted, extracted from the current browser URL. |
| format | string | 'full' returns complete data with visual specs and resolved values. 'summary' strips variant-level visual specs (medium payload). 'compact' returns only names, types, and property definitions (smallest payload, best for large design systems). Auto-compresses if response exceeds safe size regardless of format setting. |
| include | array | Which sections to include. Defaults to all. |
| includeImages | boolean | Include image URLs for components (adds latency). Default false. |
figma_get_file_at_versionFetch a Figma file (or specific nodes) as it existed at a past version_id. Thin snapshot tool — same shape as figma_get_file_data but bound to a historical version. Use figma_get_file_versions to discover version IDs. Combine with depth and node_ids to keep payloads small. Required scope: file_content:read (already standard).| Parameter | Type | Description |
|---|---|---|
| depth | number | How deep into the document tree to recurse. Lower is cheaper. Default: full depth (no limit). |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| node_ids | array | Optional: snapshot only these node IDs instead of the full file. Reduces payload significantly for targeted inspection. |
| version_id * | string | The version ID to snapshot (from figma_get_file_versions). |
figma_get_file_dataGet full file structure and document tree. WARNING: Can consume large amounts of tokens. NOT recommended for component descriptions (use figma_get_component instead). Best for understanding file structure or finding component nodeIds. Start with verbosity='summary' and depth=1 for initial exploration.| Parameter | Type | Description |
|---|---|---|
| depth | number | How many levels of children to include (default: 1, max: 3). Start with 1 to prevent context exhaustion. Use 0 for full tree only when absolutely necessary. |
| enrich | boolean | Set to true when user asks for: file statistics, health metrics, design system audit, or quality analysis. Adds statistics, health scores, and audit summaries. Default: false |
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected. |
| nodeIds | array | Specific node IDs to retrieve (optional) |
| verbosity | string | Controls payload size: 'summary' (IDs/names/types only, ~90% smaller - RECOMMENDED), 'standard' (essential properties, ~50% smaller), 'full' (everything). Default: summary for token efficiency. |
figma_get_file_for_pluginGet file data optimized for plugin development with filtered properties (IDs, structure, plugin data, component relationships). Excludes visual properties (fills, strokes, effects) to reduce payload. Use when user asks for: plugin development, file structure for manipulation, node IDs for plugin API. NOT for component descriptions (use figma_get_component). NOT for visual/styling data (use figma_get_component_for_development). Supports deeper tree traversal (max depth=5) than figma_get_file_data.| Parameter | Type | Description |
|---|---|---|
| depth | number | How many levels of children to include (default: 2, max: 5). Higher depths are safe here due to filtering. |
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). REQUIRED unless figma_navigate was already called. |
| nodeIds | array | Specific node IDs to retrieve (optional) |
figma_get_file_versionsList a Figma file's version history with metadata (label, description, author, timestamp). Auto-paginates up to max_versions. By default returns only labeled versions (skips auto-saves). Pass include_autosaves=true to see every saved state. Use the returned pagination.next_cursor to continue paging. Required scope: file_versions:read (OAuth) or 'Versions' Read (PAT).| Parameter | Type | Description |
|---|---|---|
| cursor | string | Version ID returned as pagination.next_cursor on a previous call. Pass to continue from where the last call stopped. |
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| include_autosaves | boolean | Include auto-saved versions (those without a label). Default: false. |
| max_versions | number | Hard cap on returned versions. Default 50, max 200. |
figma_get_focused_slideGet the currently focused slidefigma_get_library_analyticsHow a published library is used across the organization: instances per component/style/variable and which are unused (usages), or insertions and detachments over time — high detach rates point at components that don't meet teams' needs (actions). Enterprise only; the token needs library_analytics:read. Returns totals and top rows.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Return every row instead of a summary. |
| asset * | string | |
| endDate | string | actions: ISO date, default today. |
| fileKey | string | The library file (default: the active file). |
| groupBy | string | asset (default), team (actions) or file (usages). |
| metric * | string | |
| startDate | string | actions: ISO date, default one year ago. |
| top | number | Rows to return per ranking (default 25). |
figma_get_library_component_by_keyGet full property definitions, variants, and visual specs for a SINGLE published library component using only its component key. **USE THIS when you have a component key** (the 40-char hex returned by figma_search_components, figma_get_library_components, or search_design_system) **and want to inspect what properties/variants it exposes** before instantiating it — without first needing the source library file's URL. **RESOLVES**: componentKey → file_key + node_id → componentPropertyDefinitions + variants + visualSpec. **WORKFLOW**: 1. Pass the componentKey from search results 2. Tool tries /v1/component_sets/{key} first (most common case — buttons, inputs with variants) 3. On 404 falls back to /v1/components/{key} (standalone components) 4. Fetches the parent COMPONENT_SET at depth=2 to read componentPropertyDefinitions and per-variant visual data 5. For COMPONENT_SET keys, also fetches the source file's /components list to map each variant's node to its published variant key (needed for figma_instantiate_component) **REQUIRES** FIGMA_ACCESS_TOKEN with library_assets:read and files:read scopes.| Parameter | Type | Description |
|---|---|---|
| componentKey * | string | The component key (40-char hex string from search results, e.g., '806826503bbd2ab15d0ff77d076a9406a5a83197'). Works for both COMPONENT_SET and standalone COMPONENT keys. |
| format | string | 'full' returns properties + variants + visual specs. 'summary' returns properties + variant names only (no visualSpec). Auto-downgrades to 'summary' on large responses. |
| includeVisualSpecs | boolean | Include per-variant visual specs (fills, strokes, padding, typography). Default true. Auto-stripped if response exceeds 500KB. |
figma_get_library_variablesList all variables from team libraries the current file has subscribed. **USE THIS** when you want to see what design tokens (colors, spacing, typography sizes, booleans, strings) are available from shared libraries — without needing the library file's URL or REST API Enterprise plan. **HOW IT WORKS**: Calls figma.teamLibrary.getAvailableLibraryVariableCollectionsAsync() + getVariablesInLibraryCollectionAsync() via the Desktop Bridge. Only libraries the user has explicitly enabled in the current file appear (Figma security model). **WORKFLOW**: 1. Call this tool to inventory available library variables 2. Find the variable you want (use libraryName + collectionName + variable name to identify) 3. Pass its key to figma_import_library_variable to bring it into the current file 4. Once imported, the variable's id can be used with figma_set_fills / figma_update_variable / any standard variable-binding tool **Filters**: libraryName/collectionName accept partial case-insensitive matches. **REQUIRES** the Desktop Bridge plugin to be running in Figma Desktop.| Parameter | Type | Description |
|---|---|---|
| collectionName | string | Optional: filter by collection name within a library (case-insensitive substring match). E.g., 'Colors' or 'Spacing'. |
| libraryName | string | Optional: filter by library name (case-insensitive substring match). E.g., 'Northright' or 'Altitude'. |
| resolvedType | string | Optional: filter by variable type. Useful when you only need color tokens or only spacing values. |
figma_get_slide_contentGet the full content tree of a slide| Parameter | Type | Description |
|---|---|---|
| slideId * | string | The node ID of the slide, e.g. '1:23' |
figma_get_slide_gridGet the 2D grid layout of the presentationfigma_get_slide_transitionRead transition settings for a slide| Parameter | Type | Description |
|---|---|---|
| slideId * | string | The node ID of the slide |
figma_get_slotsList SlotNode children on a component, component set, or instance. Returns slot IDs, names, property keys, dimensions, and current child nodes. Use on instances before figma_append_to_slot to discover slot names/IDs.${FILE_KEY_DOC}| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | COMPONENT, COMPONENT_SET, or INSTANCE node ID |
figma_get_statusfigma_get_stylesGet all styles (color, text, effects, grids) from a Figma file with optional code exports. Use when user asks for: text styles, color palette, design system styles, typography, or style documentation. Returns organized style definitions with resolved values. NOT for design tokens/variables (use figma_get_variables). Set enrich=true for CSS/Tailwind/Sass code examples. Supports verbosity control to manage payload size. TIP: For full design system extraction (tokens + components + styles combined), prefer figma_get_design_system_kit instead — it returns everything in one optimized call.| Parameter | Type | Description |
|---|---|---|
| enrich | boolean | Set to true when user asks for: CSS/Sass/Tailwind code, export formats, usage information, code examples, or design system exports. Adds resolved values, usage analysis, and export format examples. Default: false for backward compatibility |
| export_formats | array | Which code formats to generate examples for. Use when user mentions specific formats like 'CSS', 'Tailwind', 'SCSS', 'TypeScript', etc. Automatically enables enrichment. Default: all formats |
| fileUrl | string | Figma file URL (e.g., https://figma.com/design/abc123). Auto-detected from WebSocket Desktop Bridge connection. Only required if not connected. |
| include_exports | boolean | Include export format examples (requires enrich=true) |
| include_usage | boolean | Include component usage information (requires enrich=true) |
| verbosity | string | Controls payload size: 'summary' (names/types only, ~85% smaller), 'standard' (essential properties, ~40% smaller), 'full' (everything). Default: standard |
figma_get_text_stylesGet all local text styles with IDs, fonts, and sizesfigma_get_variablesRead the file's variables (design tokens): collections, modes and values. Returns a compact summary by default; use format 'filtered' with collection/namePattern/mode for specific variables. For code (CSS, Sass, Tailwind, TypeScript) pass export_formats. Works on any plan through the Desktop Bridge.figma_import_htmlfigma_import_imageImport raster images (PNG, JPEG, GIF) into Figma: as new layers with an image fill, or as the fill of existing layers (nodeIds). Pass base64 data (a data: URL is fine) or, in Local Mode, file paths or a whole folder. New layers are rectangles (nodeType "frame" for frames) at the image's pixel size (an @2x/@3x file name, or density, places it at 1x), or fitted to width/height; several images are laid out in a grid frame. scaleMode (FILL, FIT, CROP, TILE) sets how the image sits in its layer, as in Figma's fill panel. Up to 8 MB and 4096 px per side per image; WebP, HEIC and SVG aren't accepted (use figma_import_svg for SVG). Images Figma can't read are reported and the rest still import. dryRun checks everything without changing Figma. Check the result with figma_capture_screenshot.| Parameter | Type | Description |
|---|---|---|
| density | number | Image pixels per layer unit: 2 places a 2x image at half its pixel size. Default: from an @2x/@3x name suffix, else 1. |
| directory | string | Local Mode only: absolute path of a folder; imports its .png, .jpg, .jpeg and .gif files. |
| dryRun | boolean | Check formats, sizes and targets and report what would happen, without changing Figma. Default false. |
| fileKey | string | Local Mode: run in this open file. Rejected in Cloud Mode. |
| fit | string | With width and height: contain (default) keeps the aspect ratio inside width×height; exact makes the layer exactly width×height and scaleMode decides how the image sits. |
| focus | boolean | Select new layers and scroll to them when they're on the current page. Default true. |
| height | number | Height of new layers; with only height, the width follows the image's aspect ratio. |
| images | array | Images, each as base64 data or (Local Mode) a file path. 32 MB of base64 in total per call. |
| layout | object | auto (default): a wrapping frame for several new layers (a section in FigJam), none for one image or an auto-layout parent. |
| limit | number | Files of directory per call. Default 50. |
| nodeIds | array | With exactly one image: put it into the fills of these existing layers (same as images[0].nodeIds). |
| nodeType | string | New layers are rectangles (default, as when you drop an image into Figma) or frames. |
| offset | number | Paging through a big folder: start at this file index (remaining.nextOffset from the previous call). Default 0. |
| parentId | string | Frame, section, group, page or slide for new layers. Default: current page (Slides: the focused slide). |
| recursive | boolean | Include subfolders of directory (up to 6 levels). Default false. |
| resumeRunId | string | After an interrupted import: the incomplete.runId it returned. Images that run already placed are reported, not placed twice. |
| scaleMode | string | How the image sits in its layer, as in Figma's fill panel. Default FILL. |
| verbose | boolean | Return full details for every image, not only problems and fills. Default false. |
| width | number | Width of new layers; with only width, the height follows the image's aspect ratio. |
| x | number | X of the new layer (one image) or of the new container, relative to the parent. Default: clear space. |
| y | number |
figma_import_library_variableImport a single variable from a subscribed team library into the current file. After import, the variable becomes locally addressable by its returned 'id' and can be passed to any tool that binds variables to nodes (fills, strokes, paddings, etc.). The import is idempotent — calling it twice returns the same local id. **WORKFLOW**: 1. Run figma_get_library_variables to find the variable key 2. Call this tool with that key 3. Use the returned 'id' with figma_set_fills (boundVariables), figma_update_variable, or other binding tools **REQUIRES** the Desktop Bridge plugin and that the source library is subscribed by the current file (otherwise importVariableByKeyAsync rejects).| Parameter | Type | Description |
|---|---|---|
| variableKey * | string | The variable key from figma_get_library_variables (collections[].variables[].key). Distinct from the variable's local id. |
figma_import_svg| Parameter | Type | Description |
|---|---|---|
| asComponent | boolean | Make each SVG a component (Design files only). Default false; implied by variants. |
| color | object | Local COLOR variable by name ('icon/default' or 'Collection/icon/default') or id. |
| description | string | Description for every component or component set created or updated. |
| directory | string | Local Mode only: absolute path of a folder of .svg files. |
| dryRun | boolean | Report names, sets, updates and problems without changing Figma. Default false. |
| fileKey | string | Local Mode: run in this open file. Rejected in Cloud Mode. |
| flatten | boolean | Merge all layers into one vector named 'Vector' when they share the same paint and stroke. Default false. |
| focus | boolean | Select the result and scroll to it when it's on the current page. Default true. |
| force | boolean | Re-apply artwork even when it matches the last import (e.g. after manual edits in Figma). Default false. |
| height | number | Fit within this height, keeping aspect ratio. |
| keepOverrides | boolean | Only update components whose layer structure is unchanged, so instance overrides survive; skip the rest. Default false. |
| layout | object | auto (default): a section for components, an auto-layout frame for vectors, none for a single SVG or an auto-layout parent. |
| limit | number | Import about this many files of directory per call (variant sets are never split). Default 200. |
| matchScope | string | Where to look for existing components with the same name. Default file. |
| name | string | Name for a single SVG (when exactly one is given). |
| namePrefix | string | Prepended to every name, e.g. 'Icon/' to file components in a folder. |
| offset | number | Paging through a big folder: start at this file index. Use remaining.nextOffset from the previous call. Default 0. |
| onExisting | string | When a component or set with the same name exists: update its artwork in place (default; instances update), skip, or create a duplicate. |
| parentId | string | Frame, section, group, page or slide to put the result in. Default: current page (Slides: the focused slide). |
| paths | array | Local Mode only: absolute paths of .svg files. |
| recursive | boolean | Include subfolders of directory (up to 6 levels). Default false. |
| resumeRunId | string | After an interrupted import: the incomplete.runId it returned. SVGs that run already imported are reported, not imported twice. |
| scaleStrokes | boolean | Scale stroke widths with the artwork when fitting (default true). false keeps stroke widths. |
| size | number | Fit inside a size×size box, keeping aspect ratio. With asComponent the component frame is exactly size×size, art centered. |
| svgs | array | SVGs given as markup (16 MB in total per call). |
| variants | object | Template over each name (or file path relative to directory, without .svg): {name} plus one {Axis} per variant property, e.g. '{name}-{Size}', '{name}_{Style}', '{Size}/{Style}/{name}'. |
| verbose | boolean | Return full details for every item, not only problems and updates. Default false. |
| width | number | Fit within this width, keeping aspect ratio. |
| x | number | X of the result (one SVG) or of the new container, relative to the parent. Default: clear space. |
| y | number |
figma_import_tokensPush design tokens from your codebase into Figma as variables. Bidirectional with figma_export_tokens. ACCEPTS: DTCG JSON (canonical, fully supported including round-trip metadata preservation). Tokens Studio JSON, CSS custom properties, Tailwind v4 @theme, SCSS, and Style Dictionary v3 are scaffolded but return a NotImplementedError — convert to DTCG first via figma_export_tokens or hand-author DTCG. Use `format: "auto"` to sniff the input. APPLY PHASE (full bidirectional sync): toCreate entries create missing collections (with the token file's full mode list) and missing variables in one batched plugin round-trip — literal values first, alias values in a second pass so aliases between newly-created variables resolve. toUpdate entries push value updates in a batched round-trip, INCLUDING alias-target updates: when a token's value is a reference, it's written as a Figma variable alias if the reference resolves to an existing or just-created variable (unresolvable references skip with a warning). toDelete entries are STRICTLY gated behind `strategy: "replace"` — in replace mode, Figma variables absent from the token file are permanently deleted (a loud warning lists the count); merge (default) preserves them and only reports. Deletes only ever touch collections the token files contain: variables in collections the import doesn't include are left alone. An import that parses 0 tokens is refused, and the diff is computed against live Figma state. Motion tokens are written as TIMING (DTCG duration; a bare number is milliseconds) and EASING (DTCG cubicBezier) variables; springs and holds round-trip through $extensions["figma-console-mcp"].spring. Variable scopes and per-platform codeSyntax (from `$extensions["figma-console-mcp"].scopes/.codeSyntax`) are diffed and applied too — absent fields mean "no opinion" (Figma-side metadata is preserved), an explicit value is authoritative. Partial-success semantics: per-item errors surface in applyResult.errors[] without failing the batch. DIFF-AWARE: Default `strategy: "merge"` diffs against current Figma state and applies only deltas. The hacked-color scenario — designer edits one hex value in their CSS — produces exactly one Figma API update, not a full collection rewrite. Match priority: Figma variable ID (in `$extensions["figma-console-mcp"].variableId`), then exact token path, then value fingerprint. CONFLICT HANDLING: When BOTH Figma and code changed the same token since the last sync, `onConflict: "ask"` (default) surfaces the conflict and writes nothing. Use `figma-wins` / `code-wins` to auto-resolve, or `skip` to leave conflicts alone and proceed with the rest. DRY-RUN: Default first call after detecting changes is dry-run for safety. The response includes the full diff plan; user confirms, then call again with `dryRun: false` (or `strategy` other than dry-run) to apply.figma_instantiate_componentPlace an instance of a component. Pass BOTH componentKey and nodeId from a search or resolve result from this session (node IDs go stale between sessions); unpublished components need nodeId. Screenshot afterwards to check placement.| Parameter | Type | Description |
|---|---|---|
| componentKey | string | Component (or variant) key from search/resolve. |
| nodeId | string | Component node ID from search/resolve (pass with componentKey). |
| overrides | object | Component property values, e.g. { Label: 'Save' }. |
| parentId | string | Parent to place it in. |
| position | object | Canvas position (default 0,0). |
| variant | object | Variant values, e.g. { Size: 'Large' }. |
figma_lint_designCheck a node tree (or the current page) for WCAG 2.2 problems — contrast, non-text contrast, color-only meaning, focus indicators, target size, alt text, headings, reflow, reading order, disabled context — plus design-system issues (hardcoded colors, missing text styles, detached components, wrong-role tokens) and layout issues. Findings carry severity and WCAG level. Readability hints (line height, letter spacing…) are opt-in via rules ['best-practice']; they are not WCAG failures.| Parameter | Type | Description |
|---|---|---|
| maxDepth | number | Maximum tree depth to traverse (default: 10) |
| maxFindings | number | Maximum findings before stopping (default: 100) |
| nodeId | string | Node to lint (default: current page). |
| rules | array | Groups or rule IDs. Default ['wcag','design-system','layout']; also 'best-practice', 'all', or IDs like 'wcag-contrast'. |
figma_list_shadersList shaders: the ones applied in this file (fills, strokes and effects), with each property's name, type and default, and the layers using them; plus shaders from the user's libraries (figma.listAvailableShaders). Use the property names with figma_apply_shader. Shaders are created in Figma, not through the Plugin API. Requires Desktop Bridge.| Parameter | Type | Description |
|---|---|---|
| nodeId | string | Only search this node and its descendants |
| scope | string | Search the current page (default) or every page |
figma_list_slidesList all slides with IDs, positions, and skip statusfigma_manage_animation_stylesManage reusable Motion animation styles, the motion layer of a design system. - list_presets: Figma's built-in animation styles with each one's props and defaults. - list: local custom animation styles and their entries. - create: a custom style (name, description) from entries, each a preset with duration, offset, easing and props. Durations and easings can bind to TIMING/EASING variables. - update: rename, change the description, or append entries. - remove_entry: drop one entry (entryId from list). - delete: remove the style. Apply a custom style with figma_apply_animation customStyleId.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| description | string | |
| entries | array | Entries to add (create, update) |
| entryId | string | Entry id to remove (remove_entry) |
| name | string | Style name; use '/' for folders, e.g. 'Motion/Enter' |
| styleId | string | Custom animation style id (update, remove_entry, delete) |
figma_manage_dev_resourcesList, add, edit or delete the dev resources on components: the links to their code, Storybook or docs that Dev Mode shows. Works in bulk (e.g. link every component figma_check_library_parity paired with code). add skips links that already exist; delete asks for confirmation.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| fileKey | string | Local Mode: run in this open file without changing the active file. |
| items | array | The link (for edit/delete: its current URL). |
| nodeIds | array | list: nodes to read (default: the selection). |
figma_move_nodeMove a node to a new position within its parent.| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | The node ID to move |
| x * | number | New X position |
| y * | number | New Y position |
figma_navigate| Parameter | Type | Description |
|---|---|---|
| url * | string | Figma file URL. |
figma_pair_pluginPair the Figma Desktop Bridge plugin to this cloud session for write access. Returns a 6-character code the user enters in the plugin's Cloud Mode section.figma_post_commentPost a comment on a Figma file, optionally pinned to a specific design node. Use after figma_check_design_parity to notify designers of drift when code is the canonical source. Supports replies to existing comment threads. Limitation: @mentions are a Figma UI-only feature — including '@name' in the message renders as plain text, not a clickable mention tag, and does not trigger Figma notifications.| Parameter | Type | Description |
|---|---|---|
| fileUrl | string | Figma file URL. Uses current URL if omitted. |
| message * | string | The comment message text. Supports basic formatting. |
| node_id | string | Node ID to pin the comment to (e.g., '695:313'). Comment appears on that element in Figma. |
| reply_to_comment_id | string | ID of an existing comment to reply to. Creates a threaded reply instead of a new top-level comment. |
| x | number | X coordinate for comment placement (absolute canvas position). Used with node_id. |
| y | number | Y coordinate for comment placement (absolute canvas position). Used with node_id. |
figma_preview_code_connectRender Code Connect snippets on Figma's servers with your repo's @figma/code-connect CLI, to see what Dev Mode will show before or after publishing. mode: "instances" renders the instances in a frame or selection with their top-level property values; mode: "combinations" renders property combinations of the components in the given Code Connect files. This runs the CLI installed in your repo (code from that folder) with FIGMA_ACCESS_TOKEN from the server environment, and sends the template source and property values to Figma (api.figma.com) for rendering; the first run asks the person to confirm. Values with commas, nested-instance overrides and slot contents can't be passed to the CLI, so those snippets are marked approximate. Needs CLI 1.5+. Call this tool directly. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| budgetMs | number | Instances mode: wall-clock budget; the rest is rendered locally. Default 60000. |
| maxCombinations | number | Combinations mode. Default 100. |
| maxRuns | number | Instances mode: CLI runs (one per distinct set of property values). Default 10. |
| mode * | string | "instances": the instances in nodeId / figmaUrl / the selection; "combinations": property combinations of the components in files. |
| properties | array | Combinations mode: Figma property names to vary (others use defaults). Default: all. |
| unique | boolean | Combinations mode: report each distinct snippet once (--unique). Default true. |
figma_publish_code_connectPublish your repo's Code Connect files to Figma using the repo's own @figma/code-connect CLI (never downloaded). Run with dryRun: true first (the default): the CLI parses exactly what would be published (no token), the docs are linted against the live components, and you get a planId. To publish, call again with the same arguments as the dry run plus dryRun: false and that planId; the person is asked to confirm. It parses the files again right before publishing and refuses if they, the arguments or the CLI changed since the dry run, or if the docs can't be linted against Figma at that moment (unless ignoreLintErrors: true). This runs code from your repo; the first run asks the person to trust that CLI. The real publish uses FIGMA_ACCESS_TOKEN from the server's environment (a personal access token with Code Connect: Write and File content: Read); the token is never put on a command line or returned. Publishing replaces the published snippets for those components and labels for everyone using the library in Dev Mode; force: true also replaces mappings made in Figma's UI. On a Professional plan, the first publish sets the plan's active library and framework (label); changing it later needs a plan admin. Call this tool directly (figma_call won't run it). Local Mode only.| Parameter | Type | Description |
|---|---|---|
| allowUnreadableFiles | boolean | Publish even if some files can't be parsed. Default false (the CLI gets --exit-on-unreadable-files). |
| batchSize | number | Upload in batches of this many components (CLI --batch-size). |
| dryRun | boolean | Default true: parse, lint and return a planId without publishing. |
| force | boolean | Also replace mappings made in Figma's UI (CLI --force). Default false. |
| ignoreLintErrors | boolean | Publish despite lint errors in the docs. Default false. |
| lint | boolean | Lint the docs against the live components (needs the Desktop Bridge or a token). Default true. |
figma_reload_plugin| Parameter | Type | Description |
|---|---|---|
| clearConsole | boolean | Clear console logs before reload |
figma_remove_animationRemove animations from a node: one applied animation style (appliedId, from figma_get_animations), one manual keyframe track, or everything (all: true). Returns what's left.| Parameter | Type | Description |
|---|---|---|
| all | boolean | Remove every animation style and keyframe track |
| appliedId | string | Applied animation style id (figma_get_animations → animationStyles[].appliedId) |
| nodeId * | string | Animated node |
figma_rename_modeRename an existing mode in a Figma variable collection. Requires the Desktop Bridge plugin to be running.| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | The collection ID containing the mode (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables. |
| modeId * | string | The mode ID to rename (e.g., '123:0'). Get this from the collection's modes array in figma_get_variables. |
| newName * | string | The new name for the mode (e.g., 'Dark Theme', 'Tablet'). |
figma_rename_nodeRename a node in the layer panel.| Parameter | Type | Description |
|---|---|---|
| newName * | string | The new name for the node |
| nodeId * | string | The node ID to rename |
figma_rename_variableRename an existing Figma variable. This updates the variable's name while preserving all its values and settings. Requires the Desktop Bridge plugin to be running.| Parameter | Type | Description |
|---|---|---|
| newName * | string | The new name for the variable. Can include slashes for grouping (e.g., 'colors/primary/background'). |
| variableId * | string | The variable ID to rename (e.g., 'VariableID:123:456'). Get this from figma_get_variables. |
figma_reorder_slidesReorder slides via new 2D grid layout| Parameter | Type | Description |
|---|---|---|
| grid * | array | 2D array of slide IDs representing the new order, e.g. [['1:2','1:3'],['1:4']] |
figma_reset_slotReset a slot on a component instance to its default (empty) state from the main component. Uses SlotNode.resetSlot().${FILE_KEY_DOC}| Parameter | Type | Description |
|---|---|---|
| instanceId | string | Instance ID — use with slotName when slotId is unknown |
| slotId | string | Direct SlotNode ID |
| slotName | string | Slot layer name on the instance |
figma_reset_variable_overridePut a variable in an extended collection back to the value it inherits, removing the extension's override. Without modeId, resets every mode; with modeId, only that mode. Get ids from figma_get_variables filtered by the extension (overriddenModeIds).| Parameter | Type | Description |
|---|---|---|
| collectionId * | string | The extended collection's id. |
| fileKey | string | Local Mode: run in this open file without changing the active file. |
| modeId | string | One of the extension's mode ids (omit to reset every mode). |
| variableId * | string | The variable's id. |
figma_resize_nodeResize a node to specific dimensions. By default respects child constraints; use withConstraints=false to ignore them.| Parameter | Type | Description |
|---|---|---|
| height * | number | New height in pixels |
| nodeId * | string | The node ID to resize |
| width * | number | New width in pixels |
| withConstraints | boolean | Whether to apply child constraints during resize (default: true) |
figma_resolve_componentsBefore building from a design system, map each UI element the request needs (plain words, e.g. ["primary button", "date picker"]) to a REAL component. Each item comes back matched (build with it), possible (a person confirms), or gap (the system lacks it: put the returned GAP note where it belongs, never a look-alike). Pass parts to check a matched component has what's needed (e.g. a card's image). Searches the active file; pass libraryFileKeys for published libraries. Verify the build with figma_audit_adherence.| Parameter | Type | Description |
|---|---|---|
| askUser | boolean | Ask the person about unclear matches and gaps when the client can show a form (default true). |
| fileKey | string | Read local components from this open file instead of the active one. |
| includeLocal | boolean | Search the active file's components (default true). |
| libraryFileKeys | array | Published library file keys to search (REST). |
| libraryFileUrls | array | Published library file URLs (alternative to keys). |
| needs * | array | The UI elements the request needs, in plain words, one per entry. |
| onUnclear | string | "ask" (default) stops on unclear matches; "placeholder" marks them with a GAP note naming the candidates. |
| parts | array | Parts a need must have, e.g. [{ need: "article card", parts: ["image", "title"] }]; missing ones come back as part gaps. |
figma_scan_code_accessibilityScan HTML code for accessibility violations using axe-core (Deque). Runs structural/semantic checks via JSDOM: ARIA attributes, roles, labels, alt text, form labels, heading order, landmarks, semantic HTML, tabindex, duplicate IDs, lang attribute, and ~50 more rules. Visual checks (color contrast, focus visibility) are disabled in this mode — use figma_lint_design for visual a11y on the design side. Also surfaces a WCAG 1.4.12 (Text Spacing) / 1.4.4 (Resize Text) advisory when typography is locked to fixed px units — the code side is where text-spacing override support is actually verified (a sub-1.5 line height in a design is not itself a failure). Together, these two tools provide full-spectrum accessibility coverage across design and code. Pass component HTML directly or use with figma_check_design_parity for design-to-code a11y comparison. No Figma connection required — this is a standalone code analysis tool.| Parameter | Type | Description |
|---|---|---|
| context | string | CSS selector to scope the scan to a specific element (e.g., '#my-component', '.card'). Scans entire document if omitted. |
| html * | string | HTML string to scan. Can be a full document or a component fragment (will be wrapped in a valid document). |
| includePassingRules | boolean | If true, includes count of passing and incomplete rules in the response (default: false). |
| mapToCodeSpec | boolean | If true, includes a codeSpec.accessibility object auto-extracted from the HTML + scan results. Pass this directly into figma_check_design_parity's codeSpec.accessibility field for automated design-to-code a11y parity checking. |
| tags | array | WCAG tag filter. Examples: ['wcag2a'], ['wcag2aa'], ['wcag21aa'], ['wcag22aa'], ['best-practice']. Defaults to all structural rules if omitted. |
figma_set_annotationsWrite or clear annotations on a Figma node. Annotations communicate design specs to developers — use them to document animation timings, easing curves, interaction behaviors, accessibility requirements, and implementation notes. Supports plain text labels, rich markdown labels, pinned design properties, and annotation categories. Pass an empty array to clear all annotations. Use mode='append' to add to existing annotations, or mode='replace' (default) to overwrite. Requires Desktop Bridge plugin. This operation is undoable in Figma (Cmd+Z).| Parameter | Type | Description |
|---|---|---|
| annotations * | array | Array of annotations to set. Each annotation can have a label (plain or markdown), pinned properties, and a category. Pass an empty array [] to clear all annotations. |
| mode | string | 'replace' (default) overwrites all existing annotations. 'append' adds new annotations while keeping existing ones. |
| nodeId * | string | Node ID to write annotations to (e.g., '695:313') |
figma_set_descriptionSet the description text on a component, component set, or style. Descriptions appear in Dev Mode and help document design intent. Supports plain text and markdown formatting.| Parameter | Type | Description |
|---|---|---|
| description * | string | The plain text description to set |
| descriptionMarkdown | string | Optional rich text description using markdown formatting |
| nodeId * | string | The node ID of the component or style to update (e.g., '123:456') |
figma_set_fillsSet the fill colors on a node. Accepts hex or CSS colors, including oklch() and color(display-p3 …). To bind a fill to a design token / color variable, pass that fill's variableId — the variable drives the color and this works on any Figma plan via the bridge (no raw figma_execute needed).| Parameter | Type | Description |
|---|---|---|
| fills | array | Fill type (currently only SOLID supported) |
| nodeId * | string | The node ID to modify |
figma_set_image_fillSet an image fill on one or more Figma nodes. The imageData parameter accepts a base64-encoded image string (JPEG/PNG). The image is decoded in the browser bridge and passed as raw bytes to the Figma plugin. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| imageData * | string | Base64-encoded image data (JPEG/PNG) |
| nodeIds * | array | Array of node IDs to apply the image fill to |
| scaleMode | string | How the image fills the node (default: FILL) |
figma_set_instance_propertiesSet an instance's component properties (TEXT, BOOLEAN, INSTANCE_SWAP, VARIANT) by name — the way to change content inside an instance, since editing its text layers directly fails silently. #id suffixes are handled. Slots: use figma_append_to_slot (components toolset).| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | Instance node ID. |
| properties * | object | Properties to set. Keys are property names (e.g., 'Label', 'Show Icon', 'Size'). Values are strings for TEXT/VARIANT properties, booleans for BOOLEAN properties. The tool automatically handles the #nodeId suffix for TEXT/BOOLEAN/INSTANCE_SWAP properties. |
figma_set_layoutSet a frame's auto layout or grid layout in one call, and place its children. Auto layout: mode HORIZONTAL or VERTICAL, gap, padding, primaryAlign (MIN, CENTER, MAX, SPACE_BETWEEN, SPACE_EVENLY, SPACE_AROUND), counterAlign, wrap with counterAxisGap and alignContent, and sizing (FIXED, HUG, FILL). Grid: mode GRID with tracks written CSS-style (grid.columns: '240px 1fr 1fr', 'repeat(3, 1fr)', 'auto 1fr', or a count), gaps, autoRows, autoFlow, and per-child row, column, spans and alignment. Only the fields you pass change. Returns the resulting layout, with grid tracks as CSS. Requires Desktop Bridge.| Parameter | Type | Description |
|---|---|---|
| alignContent | string | How wrapped lines are spaced |
| children | array | A child, or a node to move into this frame |
| counterAlign | string | |
| counterAxisGap | number | Space between wrapped rows or columns (wrap only) |
| fileKey | string | Local Mode: run in this open file (see figma_list_open_files) without changing the active file. |
| gap | number | Space between items. On a grid, sets both row and column gaps |
| grid | object | '1fr 2fr 120px', 'repeat(4, 1fr)', 'auto 1fr' (auto = hug), or a count of equal columns |
| height | number | |
| mode | string | |
| nodeId * | string | Frame, component or instance to lay out |
| padding | any | One number for all sides, or {top, right, bottom, left} |
| primaryAlign | string | |
| reverseZIndex | boolean | Stack earlier children on top (canvas stacking) |
| width | number | |
| wrap | boolean | Wrap children onto new lines (HORIZONTAL or VERTICAL) |
figma_set_slide_backgroundSet a slide's background color (creates or updates)| Parameter | Type | Description |
|---|---|---|
| color * | string | Background color as hex (e.g., '#181818') |
| slideId * | string | The node ID of the slide |
figma_set_slide_transitionSet transition effects (22 styles, 8 curves)| Parameter | Type | Description |
|---|---|---|
| curve | string | Easing curve |
| duration | number | Duration in seconds (0.01 to 10) |
| slideId * | string | The node ID of the slide |
| style * | string | Transition style |
figma_set_slides_view_modeToggle grid vs. single-slide view| Parameter | Type | Description |
|---|---|---|
| mode * | string | View mode |
figma_set_strokesSet the stroke (border) on a node. Accepts hex or CSS colors (including oklch() and color(display-p3 …)) and an optional stroke weight. To bind a stroke to a design token / color variable, pass that stroke's variableId — works on any Figma plan via the bridge.| Parameter | Type | Description |
|---|---|---|
| nodeId * | string | The node ID to modify |
| strokeWeight | number | Stroke thickness in pixels |
| strokes | array | Stroke type |
figma_set_textSet a text node's content and optionally its font size, family/style ('Semi Bold'; no-space forms are auto-corrected), wrap style (BALANCE, PRETTY) and variable-font axes. Leave out text to change only styling. For text inside an instance use figma_set_instance_properties.| Parameter | Type | Description |
|---|---|---|
| fontFamily | string | Font family, e.g. 'Inter'. |
| fontSize | number | Optional font size to set |
| fontStyle | string | Font style, e.g. 'Semi Bold'. |
| fontVariations | object | Variable-font axes, e.g. {wght: 550}. |
| nodeId * | string | The text node ID |
| text | string | New text (omit to change only styling). |
| textWrapStyle | string | AUTO, BALANCE (even lines) or PRETTY (no lone last word). |
figma_setup_design_tokensCreate a complete design token structure in one operation: collection, modes, and all variables. Ideal for importing CSS custom properties or design tokens into Figma. Values may be literals OR DTCG-style brace references ('{color.blue.600}', or set-qualified '{primitives.color.blue.600}') that resolve to variable ALIASES — first against variables created in this same call, then against existing local variables. Unresolvable references skip that value with a per-item warning (the rest of the batch still applies), so semantic collections referencing primitives no longer need raw figma_execute. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| collectionName * | string | Name for the token collection (e.g., 'Brand Tokens') |
| modes * | array | Mode names (first becomes default). Example: ['Light', 'Dark'] |
| tokens | array | Token name (e.g., 'color/primary') |
figma_skip_slideToggle whether a slide is skipped in presentation mode| Parameter | Type | Description |
|---|---|---|
| skip * | boolean | True to skip the slide, false to include it |
| slideId * | string | The node ID of the slide |
figma_take_screenshotExport an image of the currently viewed Figma page or specific node using Figma's REST API. Returns an image URL (valid for 30 days). For specific components, use figma_get_component_image instead. For files to use in code, use figma_export_assets.| Parameter | Type | Description |
|---|---|---|
| format | string | Image format (default: png) |
| nodeId | string | Optional node ID to screenshot (e.g., '123:456'). If omitted, uses the node-id query param from the Cloudflare Browser Rendering page's current URL. |
| scale | number | Image scale factor (0.01-4, default: 2 for high quality) |
figma_unpublish_code_connectRemove published Code Connect from Figma using the repo's @figma/code-connect CLI: either every component in your Code Connect files (mode: "files"), or one component and label (mode: "node"). Dry run first (default) returns what would be removed and a planId; removing needs the same arguments plus dryRun: false and that planId, and the person's confirmation. Developers stop seeing these snippets in Dev Mode for everyone using the library. Node mode removes whatever is published for that node and label, which may have come from another repo or Figma's UI. Runs code from your repo with FIGMA_ACCESS_TOKEN from the server environment. Call this tool directly. Local Mode only.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Default true: list what would be removed and return a planId. |
| mode * | string | "files": every component in the project's Code Connect files; "node": one component (figmaUrl) and label. |
figma_update_variableUpdate a single variable's value and/or its description. Pass modeId+value to change the value in a mode; pass description to set the 'How to use this variable' text shown in the Variables panel (and exported as DTCG $description). At least one of {modeId+value} or {description} is required. For many value updates at once, use figma_batch_update_variables (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Desktop Bridge plugin.| Parameter | Type | Description |
|---|---|---|
| description | string | Set the variable's description (the 'How to use this variable' field; exported as DTCG $description). Pass an empty string to clear it. |
| modeId | string | The mode ID to update the value in (e.g., '1:0'). Required when updating a value. Get this from the variable's collection modes. |
| value | any | The new value (requires modeId). For COLOR: hex string like '#FF0000'. For FLOAT: number. For STRING: text. For BOOLEAN: true/false. |
| variableId * | string | The variable ID to update (e.g., 'VariableID:123:456'). Get this from figma_get_variables. |
figma_watch_console| Parameter | Type | Description |
|---|---|---|
| duration | number | How long to watch in seconds |
| level | string | Filter by log level |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 15K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !No dynamic code executionScanned 312 source files and found 8 calls to eval or shell execution, in figma-desktop-bridge/code.js:519, src/core/codeconnect/render.ts:699 and src/core/history/git-history.ts:316 among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/local.ts:17, src/core/http-transport.ts:201
- Starts other programs
- 12 callssrc/core/codeconnect/exec-port.ts:47, src/core/codeconnect/exec-port.ts:94, src/core/codeconnect/exec-port.ts:158
- Outbound network calls
- 11 callssrc/core/cloud-websocket-connector.ts:16, src/core/cloud-websocket-relay.ts:69, src/core/figma-api.ts:227
- Writes or deletes files
- 11 callssrc/core/codeconnect/fs-port.ts:160, src/core/codeconnect/fs-port.ts:174, src/core/codeconnect/fs-port.ts:179
- Lockfile
- package-lock.json
Pattern matches on the source text of 312 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 15K words, fetched yesterday. The original in the repository is authoritative.
Read full README