swap_mode
Switch the active mode of a Figma variable collection to a specified mode name, updating design variants across the project.
Instructions
Switch the active mode on a variable collection.
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": {
"collectionId": "<collectionId>",
"mode": "<mode>"
},
"name": "swap_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Mode name to activate | |
| collectionId | Yes | Collection ID |