Parameters
string
required
ID of the parent node to scan. The scan traverses all descendants recursively.
array
required
Array of Figma node type strings to match. Common types:
COMPONENT- Design system componentsINSTANCE- Component instancesFRAME- Container framesGROUP- Grouped elementsTEXT- Text layersRECTANGLE- Rectangle shapesELLIPSE- Circle/ellipse shapesPOLYGON- Polygon shapesSTAR- Star shapesLINE- Line shapesVECTOR- Vector pathsSECTION- Section frames
Response
Returns an object with:Usage
Finding Annotation Targets
The primary use case is identifying which nodes need annotations:Workflow Examples
Design system audit
Find all components to document:Interactive element discovery
Find all elements that need interaction specs:Layout analysis
Analyze frame structure:Combining with Annotations
Complete annotation workflow
Selective annotation by node type
Spatial Analysis
The bounding box data enables spatial queries:Performance
- Scans recursively through entire node hierarchy
- Returns immediately with full results (no chunking)
- Efficient for finding specific node types in complex designs
- For text-only scans, use
scan_text_nodesinstead (optimized with chunking)
Use Cases
Pre-annotation scanning
Identify all elements that need annotations before batch operationsComponent inventory
Build a complete list of all components in a design systemInstance tracking
Find all instances of components to verify consistencyLayout structure analysis
Map out the frame hierarchy of a designElement filtering
Find specific types of nodes for targeted operationsRelated Tools
get_annotations
Get existing annotations
set_multiple_annotations
Batch annotate discovered nodes
scan_text_nodes
Specialized tool for scanning text nodes
get_node_info
Get detailed info about specific nodes