Get file components
get_file_componentsGet published components from a Figma file library by supplying a file key or URL. Enables access to reusable design assets for agents and CI pipelines.
Instructions
GET /v1/files/{key}/components — published components in a file library. Scope: library_content:read.
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": {
"file": "<file>"
},
"name": "get_file_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) |