Set instance properties / swap component
figma_set_instance_propertiesUpdates a Figma instance's variant and component properties using short names, or swaps the instance to another component.
Instructions
Changes an instance's variant and component properties (short names like "Label" work), or swaps it to another component.
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": {
"node_id": "<node_id>"
},
"name": "figma_set_instance_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. | |
| node_id | Yes | Node id, e.g. "12:345" (link form "12-345" also accepted) | |
| properties | No | ||
| swap_component_id | No | ||
| swap_component_key | No |