Get design spec for a node
figma_get_designGet a code-oriented spec of a Figma frame, component, or layer from a link: layout, sizing, fills, typography, variants, and design tokens. Use it to turn designs into implementation details.
Instructions
Returns a compact, code-oriented spec of a frame/component/layer: layout (flex direction, gap, padding, alignment, sizing fill/hug/fixed), size/position, fills, strokes, radius, effects, text content and typography, component/variant/props of instances, bound variables (design tokens) by name, and which layers should be exported as assets. Repeated styles are listed once under "styles" and referenced by id (named Figma styles keep their names).
No Dev Mode or Figma seat needed. Works from a link: https://www.figma.com/design//?node-id=1-2
Use figma_get_screenshot alongside to see it, figma_get_code for a starting implementation, figma_download_assets to fetch icons/images.
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": {
"url": "<url>"
},
"name": "figma_get_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| depth | No | Levels below the node to include. Omit for everything; the result is trimmed automatically if too large. | |
| format | No | yaml (default, ~30% fewer tokens) or json | yaml |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |
| node_id | No | Node id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89". | |
| include_hidden | No | Include hidden layers |