rename_variable
Rename a Figma variable while preserving its ID, so existing bindings keep working. Use slashes to group variables in the panel.
Instructions
Rename a variable (e.g. "color/primary" → "color/brand"); use slashes in the name for folder grouping in the Variables panel. The variable id is unchanged, so existing bindings keep working. Returns { ok, variableId, name }.
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>",
"name": "<name>"
},
"name": "rename_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New variable name, e.g. "color/brand" | |
| variableId | Yes | Variable id |