List Components
component_listList components in a Figma document. Filter by local or remote components, and scope to a specific page or the entire document.
Instructions
List components in the document, with filtering and scope options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Scope of the search: 'page' (queries a specific page, requiring pageId) or 'document' (entire file, default). | document |
| filter | No | Filter components by origin: 'local' (created in this file) or 'remote' (library components). If omitted, returns all. | |
| pageId | No | The ID of the page to query when scope is 'page' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Total count of components | |
| components | Yes | List of component objects |