figma_get_layout_tree
Capture a Figma subtree's absolute-geometry snapshot in one call—parent, size, transform, layout/render bounds, and clip flags—to validate rebuilds or atlases without per-layer queries.
Instructions
Absolute-geometry snapshot of a subtree in ONE call: per node — parent, size, absoluteTransform (2x3 matrix), absolute layout and render bounds, clip flag. Measured in document-absolute space, the same space a PNG export uses, so it is what you check a rebuild or an atlas against instead of one get_node per layer. The screenshot is a SEPARATE call (atomicWithScreenshot: false): geometry first, then capture, and compare rev.
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": "figma_get_layout_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Scene node to snapshot; defaults to the single selected node | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| maxNodes | No | Truncation budget; `truncated` says when it was hit |