get_canvas_tree
Retrieve a live node tree from any Figma file where the Tokens Studio plugin is active. Each node includes position, size, auto-layout, fills, radius, and text properties, with configurable depth up to 12.
Instructions
Live node tree from the plugin — works in ANY file the plugin is open in (drafts, branches, files without REST access), no fileKey needed. Root = nodeId, else the single selected node, else the current page. Each node carries id/name/type, x/y/w/h, auto-layout props, fills, radius, and text font/size/content. Depth-limited (default 6, max 12).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| nodeId | No |