Read a design
get_designExtracts a Figma frame or component’s layout, sizes, colors, typography, tokens, components, and overrides in a compact structure for reproducing it in code.
Instructions
The main tool: a compact, exact description of a frame/component (layout, sizes, colours, typography, tokens, components, overrides) for reproducing it in code. Output is breadth-first within a token budget; cut subtrees say how to fetch them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Which open Figma file (name or key) when several are connected. Default: the most recently active. | |
| depth | No | Max levels to read below the target (default: all). | |
| budget | No | Approximate output size in tokens (default 8000). | |
| target | No | Figma URL, node id(s) like "12:34" (comma-separated), or omit for the current selection in Figma. | |
| assets_dir | No | Also write the icons (SVG) and images to this folder; each layer then names its file in src: (saves a separate export_assets call). | |
| components | No | auto (default): repeated components printed once + per-instance overrides. inline: every instance expanded. names: instances as one line (when the codebase already has them). | |
| screenshot | No | Also return a PNG of the target (saves a separate get_screenshot call). | |
| current_color | No | With assets_dir: monochrome SVG icons use currentColor (default false). | |
| expand_vectors | No | Describe the shapes inside icons/illustrations instead of one svg line (default false). | |
| include_hidden | No | Include hidden layers (default false). |