figma-bridge-mcp
v2.10.6Bidirectional Figma MCP — AI draws UI on Figma canvas, reads designs back
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
figma_status
Check whether the Figma plugin bridge is connected. Always call this first to confirm the plugin is running before any other tool.
figma_write
Execute JavaScript code to CREATE or MODIFY designs in Figma. ⚠️ MANDATORY: Call figma_docs BEFORE writing any design code. Skipping figma_docs causes hardcoded colors, wrong sizing, broken layouts, and low-quality UI. Use the `figma` proxy object — all methods return Promises, use async/await. REUSE BEFORE DRAWING: check get_local_components / figma_rules first. Shared pieces → figma.instantiate({ componentId, parentId, overrides }); a frame to start from → figma.clone({ id, parentId, overrides }) (both return the copy's `layers`). Never redraw what already exists; create() warns wh…
| Parameter | Type | Description |
|---|---|---|
code * | string | JavaScript using figma.create(), figma.modify(), figma.setPage(), etc. |
sessionId | string | Target a specific Figma file/tab when multiple are connected. Omit to auto-select. |
figma_read
READ design data from Figma — extract node trees, colors, typography, spacing, and screenshots. Use to understand an existing design before generating code, or to inspect what's on the canvas.
| Parameter | Type | Description |
|---|---|---|
operation * | string | ── Design-to-code (use these for code generation) ── get_design_context: AI-optimized payload for a node — flex layout, token-resolved colors, typography with style names, component instance… |
depth | string | Tree depth for get_design/get_selection. Number (default 10) or 'full' for unlimited. Higher = more detail but larger output. |
detail | string | Detail level for get_design/get_selection: 'minimal' (~5% tokens), 'compact' (~30%), 'full' (default, 100%). Use minimal for large files. |
format | string | Image format for export_image: 'png' (default) or 'jpg'. |
includeHidden | boolean | Include invisible nodes (visible:false) in results. Default false — hidden layers are skipped to reduce noise. |
nodeId | string | Target node ID (optional — omit to use current selection). |
nodeName | string | Target node name (alternative to nodeId). |
scale | number | Export scale for screenshot (default 1). |
sessionId | string | Target a specific Figma file/tab when multiple are connected. Omit to auto-select. |
figma_docs
Get the API reference and design rules for figma_write. Call with no args first — returns quick-start guide + critical rules. Then load specific sections as needed: section='rules' (design principles, token rules, layer order, component-first), section='layout' (auto-layout, button/card/badge/progress/mobile rules), section='api' (create/modify/delete/clone/batch/read operations + workflow), section='tokens' (variables, multi-mode, paint styles, text styles), section='icons' (loadImage, loadIcon, loadIconIn, icon libraries, coloring, sizing). Always call figma_docs BEFORE any figma_write cod…
| Parameter | Type | Description |
|---|---|---|
section | string | Which section to load. Omit (or null) for quick-start + critical rules. Load layout before any auto-layout work. Load api for full operation reference. Load tokens for variable/multi-mode work. Load i… |
figma_rules
Generate a design system rule sheet from the current Figma file — aggregates color tokens, typography styles, variables (all modes), and component catalog into a single markdown block. Equivalent to official Figma MCP's create_design_system_rules. Call once at the start of a design-to-code session to give the AI full context: what tokens to use, what text styles exist, which components are available. Re-run when the design system changes.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | Target a specific Figma file/tab. Omit to auto-select. |
figma_export_files
Export frames from the current Figma page to image files ON DISK and return their paths, not the images. Use it to save mockups for docs, PRDs or attachments; use figma_read screenshot to LOOK at a frame instead. Select nodes with nodeIds, or with namePattern (wildcard * on the node name, e.g. "Workspace/*"; current page only). Files are written only inside the allowed export folders: ./figma-exports (relative to the MCP client's working directory) plus any folders listed in the FIGMA_EXPORT_ROOTS environment variable. Omit outputDir to use ./figma-exports. File names come from the node names…
| Parameter | Type | Description |
|---|---|---|
fileNames | array | Optional names, one per node in order, without folders. The extension is added for you. |
format | string | Default png. |
namePattern | string | Export every frame on the current page whose name matches, e.g. "Workspace/*". Use this or nodeIds. |
nodeIds | array | Node IDs to export (e.g. ["1:23"]). Use this or namePattern. |
outputDir | string | Absolute destination folder inside an allowed export folder. Default: ./figma-exports. |
overwrite | boolean | Replace files that already exist (default false). |
scale | number | Export scale, 0.1 to 4 (default 2). Ignored for svg. |
sessionId | string | Target a specific Figma file/tab. Omit to auto-select. |