Get design context (REST lite)
get_design_context_liteFetch a compact design snapshot for a Figma node subtree, including layout, text, fills, and component IDs. Optionally attach token summaries for context.
Instructions
REST-only codegen snapshot for a subtree: identity, bbox, best-effort CSS flex from auto-layout, text + typography, fill/stroke summaries, component/instance ids. Optional include_tokens attaches a compact token summary (variables or labeled fallback). Not official MCP get_design_context. Image fills are refs — use get_images or bundle_image_fills for pixels.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "get_design_context_lite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| depth | No | REST subtree depth. Default 6. | |
| format | No | json (default) slim tree; markdown compact outline; both. | |
| node_id | No | Target node id (1:2 or 1-2). Optional if the file URL already has ?node-id=. | |
| max_nodes | No | Cap mapped nodes so the payload fits a context window. Default 80. | |
| include_tokens | No | If true, attach a compact tokens summary (real variables when Enterprise+file_variables:read, else styles/inferred fallback). Default false so the tree stays small; use get_variable_defs for the full token list. |