combine_as_variants
Combine components into a Figma component set and define variants by naming each component with properties such as 'Size=Large, State=Hover'.
Instructions
Combine components into a component set. Name components like 'Size=Large, State=Hover' to define variant properties.
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": {
"componentIds": "<componentIds>"
},
"name": "combine_as_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| name | No | ||
| componentIds | Yes |