set_variable_mode
Switch theme variable modes for one or many Figma nodes. Target selected node IDs, a root node with optional recursion, or the current page by mode ID or exact mode name.
Instructions
Theme switch: set the variable mode for one or many nodes. modeId can be a mode id or exact mode name. Scope via nodeIds, rootNodeId (recurse defaults true, pass recurse:false for the root only), or the whole current page.
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": {
"modeId": "<modeId>"
},
"name": "set_variable_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modeId | Yes | ||
| nodeIds | No | ||
| recurse | No | ||
| rootNodeId | No | ||
| collectionId | No |