get_page_tree
Fetch the Figma file's node tree, listing pages and child nodes with IDs for screenshots and analysis. Depth controls traversal.
Instructions
Get the hierarchical node tree of the current Figma file.
Prereq: bridge + plugin connected. Returns: array of pages { id, name, type: "PAGE", children[] }; child nodes { id, name, type, children? }. IDs feed capture_screenshot and analyze_design. depth=1 pages only, 2 (default) top-level frames, 3+ component internals — high depths may be slow on large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum tree depth to traverse (default 2, max 8). Depth 1 = pages only, depth 2 = pages + top-level frames, depth 3+ = deeper into component trees. Large files at depth 4+ may be slow. |