rename_layer
Rename Figma nodes individually or in batches using node IDs and new names. Supports preserving TextNode autoRename for efficient design updates via Conduit MCP server.
Instructions
Renames one or more nodes in Figma. Accepts either a single rename config (via 'rename') or an array of configs (via 'renames').
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the original and new name(s).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
rename | No | A single rename configuration object. Optional. | |
renames | No | An array of rename configuration objects for batch renaming. Optional. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"rename": {
"additionalProperties": false,
"description": "A single rename configuration object. Optional.",
"properties": {
"newName": {
"description": "The new name for the node. Must be a non-empty string up to 100 characters.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"nodeId": {
"description": "The unique Figma node ID to rename. Must be a string in the format '123:456'.",
"type": "string"
},
"setAutoRename": {
"description": "Whether to preserve TextNode autoRename",
"type": "boolean"
}
},
"required": [
"nodeId",
"newName"
],
"type": "object"
},
"renames": {
"description": "An array of rename configuration objects for batch renaming. Optional.",
"items": {
"$ref": "#/properties/rename"
},
"type": "array"
}
},
"type": "object"
}