figma_reader
Read a Figma design so you can build it for real in the user's project. Open the file in a Dea tab first (open_tab with its figma.com/design URL, show:false is fine; the account must be able to edit it: for a view-only file, ask the person to duplicate it to their drafts and use the copy's link). Without frame_id: the pages and their screens (a big file lists pages only; pass page to list one page's screens). With frame_id (like 1:13, or the URL's node-id 1-13): the screen's structure in reading order as JSX, each element named (Header, Form, TextField, PrimaryButton...) with Figma's exact values (box, auto layout, fonts per text part, colors, borders, radius, components, hidden states, icons as SVG files), plus the project's stack and how to build it. Build it in the project with its own components, routes and theme, run it on its dev server, then compare that running page to the frame and record it with design_map set. Never build standalone HTML copies. No Figma API token needed.
Example#
Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.
{}Usage notes#
Open the editable Figma file in Dea first. Large files may require selecting a page. Optional naming can use TypeSafe; core browser reading needs no Figma API token.
Result#
Without a frame, lists Figma pages/screens; with a frame, returns structure, measurements, typography, assets, and project implementation hints.
Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | No | Figma file URL; defaults to the current tab |
frame_id | string | No | Frame id like 1:13 or URL node-id like 1-13 |
images | boolean | No | Also save the frame as a PNG (2x) |
dir | string | No | Folder to save files in |
names | boolean | No | Name elements with Jev (default true) |
project_dir | string | No | The project to build into (default: the current Dea project) |
page | string | No | List only this page's screens (name or id); big files list pages only without it |
tab | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |
Full input schema#
The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"url": {
"description": "Figma file URL; defaults to the current tab",
"type": "string",
"format": "uri"
},
"frame_id": {
"description": "Frame id like 1:13 or URL node-id like 1-13",
"type": "string"
},
"images": {
"description": "Also save the frame as a PNG (2x)",
"type": "boolean"
},
"dir": {
"description": "Folder to save files in",
"type": "string"
},
"names": {
"description": "Name elements with Jev (default true)",
"type": "boolean"
},
"project_dir": {
"description": "The project to build into (default: the current Dea project)",
"type": "string"
},
"page": {
"description": "List only this page's screens (name or id); big files list pages only without it",
"type": "string"
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting