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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "get_components"
}
}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'. |