read_structure
Retrieve a bounded layer tree for a Figma node with sizes, auto layout, fills, strokes, radius, text styles, and component names; hidden layers are skipped.
Instructions
Layer tree of a node for implementing it: one line per layer with size, auto layout, fills, strokes, radius, text style and component. Hidden layers skipped. Bounded by depth and node count.
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>",
"id": "<id>"
},
"name": "read_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Node id or node URL | |
| file | Yes | Figma file URL or key | |
| depth | No | Levels below the node (default 4) | |
| offset | No | From a [more: …] footer | |
| maxNodes | No | Stop after this many lines (default 150) |