List Components
component_listList Figma components with filtering by origin (local/remote) and scope (page/document). Document scans report page failures in coverage; page-scoped queries return structured errors.
Instructions
List components in the document, with filtering and scope options. Document scans isolate page failures and report them in coverage; page-scoped failures return their structured error directly.
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 | No | Total count of components | |
| error | No | ||
| coverage | No | Page-scan coverage; partial read data remains usable when complete is false | |
| components | No | List of component objects |