add_variable_mode
Add a new mode (e.g., Light/Dark, Desktop/Mobile) to an existing variable collection in Figma. Note: Free plan limited to one mode; paid plan required for multiple modes.
Instructions
Add a new mode to an existing variable collection (e.g. Light/Dark, Desktop/Mobile). IMPORTANT — Figma free plan only allows 1 mode per collection; calling this tool on a free-plan account will return the error 'Limited to 1 modes only'. If that error occurs, stop retrying and switch to the name-prefix workaround: keep the single default mode and create variables prefixed by mode, e.g. 'light/color-bg' and 'dark/color-bg' in the same collection. Tell the user that native multi-mode variables require a paid Figma plan (Professional or above).
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>",
"modeName": "<modeName>"
},
"name": "add_variable_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modeName | Yes | Name for the new mode | |
| collectionId | Yes | Variable collection ID |