figma_set_variant
Set variant or boolean component properties on a Figma instance. Use single property mode or batch mode to set multiple variants at once, ensuring valid axis combinations.
Instructions
Set VARIANT or BOOLEAN component properties on an instance. Supports single property OR batch mode. IMPORTANT: For VARIANT properties, Figma requires all variant axes to form a valid combination — use batch mode (properties object) to set multiple variants at once. For BOOLEAN properties, use true/false (not strings). Use figma_get_component_variants to discover available property names and values first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| propertyName | No | Single property name, e.g. "Size" or "Icon leading". Use "properties" for batch. | |
| value | No | String for VARIANT, boolean for BOOLEAN. | |
| properties | No | Batch mode: { "Size": "sm", "Hierarchy": "Link", "Icon leading": false }. Overrides propertyName/value. |