Rename a layer
figma_set_node_nameRename a Figma layer to set the class name in generated code, ensuring exported components have clear, meaningful names.
Instructions
Renames a layer. Layer names are what the generated code turns into class names, so tidying them is a real change and not cosmetic.
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>",
"name": "<name>"
},
"name": "figma_set_node_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| nodeId | Yes | Figma node id, like "21:10314". Omit to use whatever is selected on the canvas. |