get_components
Retrieve components from local documents, team libraries, or remote team libraries in Figma. Specify source, team ID, and pagination for structured JSON output.
Instructions
Get components from the current document, a team library, or remote team libraries.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the components info as JSON.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
after | No | A cursor for pagination, indicating where to start the next page. | |
page_size | No | The number of components to return per page. | |
source | Yes | The source to get components from: 'local' (current document), 'team' (team library), or 'remote' (remote team library). | |
team_id | No | The team ID to use when the source is 'team' or 'remote'. |