Overview
Retrieves all local components defined in the current Figma document. This includes main components but not component instances.Parameters
This tool takes no parameters.Response
Returns a JSON object containing all local components:Array of component objects from the Figma document
Usage Example
Common Use Cases
Component Catalog
Build a catalog of available components in your design system
Instance Creation
Get component keys needed for creating instances programmatically
Documentation
Auto-generate component library documentation
Inventory Management
Track and manage components across your design files
Workflow
Create instances
Use the component’s
key with create_component_instanceNotes
- Only returns main components (not instances)
- Only local components are included (not library components from other files)
- The
keyfield is essential for creating instances withcreate_component_instance - Components are returned in the order they appear in the document
Related Tools
- create_component_instance - Create an instance of a component
- get_styles - Get all styles from the document
- get_instance_overrides - Get overrides from a component instance