Skip to main content
Scans the hierarchy of a parent node to find all descendant nodes matching specified types. Essential for identifying annotation targets, discovering components, or analyzing design structure.

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 components
  • INSTANCE - Component instances
  • FRAME - Container frames
  • GROUP - Grouped elements
  • TEXT - Text layers
  • RECTANGLE - Rectangle shapes
  • ELLIPSE - Circle/ellipse shapes
  • POLYGON - Polygon shapes
  • STAR - Star shapes
  • LINE - Line shapes
  • VECTOR - Vector paths
  • SECTION - 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_nodes instead (optimized with chunking)

Use Cases

Pre-annotation scanning

Identify all elements that need annotations before batch operations

Component inventory

Build a complete list of all components in a design system

Instance tracking

Find all instances of components to verify consistency

Layout structure analysis

Map out the frame hierarchy of a design

Element filtering

Find specific types of nodes for targeted operations

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