figma_get_tree
Get a compact outline of a Figma file's layer tree, including ids, types, names, sizes, and hints. Omit node_id to cover all pages.
Instructions
Compact outline of the layer tree (id, type, name, size, hints). Omit node_id for all pages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to a local .fig file, or a Figma file key / figma.com/design/... URL. A node-id in the URL is used when this tool takes node_id and it is omitted; a tool that answers about the whole file ignores it. A key or URL uses a local '<name> [<key>].fig' from FIGMA_FILES_DIRS when one exists, otherwise exports through the browser. | |
| depth | No | Levels of children below the start node (default 2). With no node_id the start is the document, whose pages are level 0, so the default shows three: pages, their top-level layers, and one level under those | |
| node_id | No | Start node id like 12:34 (or 12-34) | |
| refresh | No | Skip local/cached copies and export the live file through the browser. Has no effect when file is a path to a .fig: that file is read as it is on disk and the result carries refreshIgnored; pass the key or URL to export the live file instead. | |
| max_nodes | No | Default 400 |