set_variant
Modify component sets in Figma by creating, adding, renaming, deleting, organizing, or batch processing variants/properties. Supports single or batch operations for efficient design updates.
Instructions
Create, add, rename, delete, organize, or batch create variants/properties in a component set (single or batch).
Returns: Array of result objects for each operation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | A single variant operation to perform. | |
| variants | No | An array of variant operations to perform in batch. |