switch_variable_mode
Switch the variable mode on a Figma node to control which mode values apply to bound variables. Specify the collection and the mode to switch to.
Instructions
Switch the variable mode on a node for a specific collection. This changes which mode's values are used for bound variables.
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>",
"collectionId": "<collectionId>",
"modeId": "<modeId>"
},
"name": "switch_variable_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to switch mode on | |
| collectionId | Yes | The ID of the variable collection | |
| modeId | Yes | The ID of the mode to switch to |