figma_inspect
Reads Figma node properties, children, text details, pages, selection, or component variants. Use to verify state before or after edits, discover node IDs, or check component set support.
Instructions
Reads Figma document state — node properties, children, parent, text detail, pages, top-level page nodes, selection, component variants, or a build-manifest section lookup. Read-only, never blocked by phase gates. Use to verify state before/after edits, discover node IDs, or check what a component set supports. Params: target (required: "node"|"children"|"parent"|"text"|"pages"|"page"|"selection"|"variants"|"section") selects the read; nodeId (node/children/parent/text), depth (children, default 1), componentSetKey (variants), sectionName (section — HTML section name from the last build).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels deep to traverse. Only used with target="children". Default 1. | |
| nodeId | No | Node ID to inspect. Required for target: node, children, parent, text. | |
| target | Yes | "node"=full node props, "children"=child nodes, "parent"=parent node, "text"=text node detail, "pages"=all pages in the file, "page"=top-level nodes on the current page, "selection"=currently selected nodes, "variants"=all variants for a component set, "section"=find a node by its HTML section name from the last build. | |
| sectionName | No | The HTML section to find (e.g., "header", "metrics row", "table"). Required for target="section". | |
| componentSetKey | No | Component set key. Required for target="variants". |