set_instance_variant
Modify variant properties of a Figma component instance while keeping existing overrides, eliminating the delete-recreate workflow.
Instructions
Change the variant properties of a component instance without recreating it. This preserves instance overrides and is more efficient than delete + create workflow.
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": {
"nodeId": "<nodeId>",
"properties": "<properties>"
},
"name": "set_instance_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the instance node to modify | |
| properties | Yes | Variant properties to set as key-value pairs (e.g., { "State": "Hover", "Size": "Large" }) |