Parameters
string
required
The ID of the parent node containing all elements to be annotated. Used for scoping the batch operation.
array
required
Array of annotation objects to apply. Each annotation object contains:
Response
Returns a detailed result object:Usage
Batch Processing
The tool automatically processes annotations in batches of 5 to prevent Figma UI freezing. Progress updates are provided during processing:Complete Annotation Workflow
Typical workflow for annotating a complex design:1. Scan for annotation targets
First, identify all elements that need annotations:2. Get available categories
Retrieve annotation categories for consistent organization:3. Build annotation array
Map targets to annotations with appropriate content:4. Apply batch annotations
Apply all annotations in one operation:Converting Manual Annotations
Common use case: converting numbered/lettered annotation markers to native Figma annotations.Scan text nodes for markers
Match markers to UI elements
Apply converted annotations
Performance Considerations
- Batch size: Fixed at 5 annotations per batch for optimal performance
- Large operations: Annotating 50+ nodes will take time; progress updates keep you informed
- Verification: Check
resultsarray for any failed annotations - Retry logic: Failed annotations can be retried individually with
set_annotation
Use Cases
Design system documentation
Development handoff
Best Practices
- Use scan tools first: Always use
scan_nodes_by_typesto identify targets before batch annotating - Consistent categories: Use the same category for related annotations
- Rich markdown: Leverage markdown for structured, readable annotations
- Check results: Always inspect the
resultsarray for failures - Logical grouping: Keep annotations in the same batch if they’re related
Related Tools
get_annotations
Retrieve existing annotations and categories
set_annotation
Create or update single annotation
scan_nodes_by_types
Find nodes to annotate
scan_text_nodes
Find text nodes (for converting manual annotations)