extract_variants
Turn Figma component sets into structured variant specs with parsed properties, layout, fills, and typography to streamline design handoff.
Instructions
Reads a Figma component set and returns structured variant data including parsed variant properties, dimensions, layout details, fills, and typography from text descendants.
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_key": "<file_key>",
"access_token": "<access_token>",
"node_id": "<node_id>"
},
"name": "extract_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | The COMPONENT_SET node ID to inspect | |
| file_key | Yes | The Figma file key (from the file URL) | |
| access_token | Yes | Your Figma personal access token |