figma_rename_variable
Rename an existing Figma variable while preserving its values and settings; use slash-separated names to organize groups. Requires the Desktop Bridge plugin.
Instructions
Rename an existing Figma variable. This updates the variable's name while preserving all its values and settings. Requires the Desktop Bridge plugin to be running.
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": {
"variableId": "<variableId>",
"newName": "<newName>"
},
"name": "figma_rename_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | The new name for the variable. Can include slashes for grouping (e.g., 'colors/primary/background'). | |
| variableId | Yes | The variable ID to rename (e.g., 'VariableID:123:456'). Get this from figma_get_variables. |