Inspect the design structure
figma_inspectPrint the converted design’s IR tree as an indented outline to understand its structure and find specific elements without reading raw Figma JSON or the full ir.json.
Instructions
Print the IR tree as an indented outline (role, name, box, layout, text, tokens) so you can understand the design structure and find a specific element without reading raw Figma JSON or the whole ir.json. Use after figma_convert.
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": {
"dir": "<dir>"
},
"name": "figma_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Cache dir from figma_convert. | |
| depth | No | Max tree depth to print. | |
| filter | No | Only show nodes whose name or text matches this (case-insensitive substring). |