Rename Symbol
rename_symbolRename a symbol in a KiCad symbol library, updating sub-shards and derived references, while leaving placed schematic instances unchanged.
Instructions
Rename a symbol in a .kicad_sym library, including its sub-symbol shards (name_0_1, ...) and any (extends ...) references from derived symbols in the same library. Note: schematics that already place the old lib_id are NOT updated — use replace_instance_lib_ids for that.
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": {
"libraryPath": "<libraryPath>",
"oldName": "<oldName>",
"newName": "<newName>"
},
"name": "rename_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | New symbol name | |
| oldName | Yes | Current symbol name | |
| libraryPath | Yes | Path to the .kicad_sym file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |