inspect
Summarizes a Figma node's bounds, layout, typography, text previews and child counts, with optional image dimensions and paint crop rectangles, so agents can make design decisions.
Instructions
Compact expanded node summary: bounds, layout, typography, text previews and child counts. For image decisions, images=true adds original dimensions/bytes and source-pixel rectangles before masks, not blur diagnoses. Depth and a 200-node budget bound the summary; image paints have their own 200-item limit. nodes returns full design data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | the saved .fig: a local path (absolute recommended), or gs://bucket/object using gcloud; remote sources are unavailable with --root | |
| node | Yes | a stored node id (12:345 or 12-345), full instance sublayer id (I12:345;67:89) from inspect/nodes, or a Figma URL with ?node-id= | |
| depth | No | 0-10 levels below the node, default 1; text previews up to 200 characters | |
| images | No | include source bitmap dimensions/bytes and per-paint source-pixel crop rectangles; no files written | |
| states | No | include bounded variants and prototype field evidence with exact sources/unknowns; retains instance overrides, infers no business conditions and renders no other variants | |
| compareVariant | No | compare node with this other stored variant in the same component set; adds bounded raw-field and descendant-multiset differences, exact sources and unknown pairing; no alternate rendering or business inference |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Compact node with partial layout semantics and type-only property definitions; _figlens.semantics records source/verification. Definitions, definition evidence and _figlens.renderDiagnostics each have at most 20 entries per node; truncated includes omitted nodes or entries | |
| images | No | optional source image evidence when images=true | |
| states | No | optional variants and prototype field evidence when states=true; independent truncation, source file, node/override provenance and unknown markers; no inferred business logic | |
| truncated | Yes | ||
| variantComparison | No | optional same-set definition comparison when compareVariant is supplied; raw fields, descendant value multisets, unpaired nodes, unknowns and independent truncation; not a pixel comparison |