Rename Node
node_renameRename a Figma node to an exact new name. Provide node ID, current name, and the new non-empty name.
Instructions
Rename a node (sets name to an exact value).
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": {
"nodeId": "<nodeId>",
"nodeName": "<nodeName>",
"name": "<name>"
},
"name": "node_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New non-empty name for the node. Figma normalizes an empty name to a type default, so `""` is refused rather than silently substituted. | |
| nodeId | Yes | The ID of the node to rename | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new name of the node | |
| error | No | ||
| oldName | No | The old name of the node |