upgrade_project_libraries
Convert the libraries of the project tables to the file version of the installed KiCad 10, with kicad-cli (kicad-cli sym upgrade, kicad-cli fp upgrade).
Instructions
Convert the libraries of the project tables to the file version of the installed
KiCad 10, with kicad-cli (kicad-cli sym upgrade, kicad-cli fp upgrade).
KiCad converts each library of an older version into a temporary folder. Then KiCad saves the result again: the bytes must not change, and the names of the symbols or the footprints must stay. Only then the tool writes the files of that library, all or none. The tool makes no backup: git gives the way back, and the output names a library that git cannot give back. A converted library cannot be read by an older KiCad. A library outside the project folder (other projects can use it) is converted only when libraries names it or include_outside is True. A library of a newer version, and a folder of symbol files, give an error. KiCad must not have the project open. The installed KiCad must be KiCad 10.0.
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": {
"project_path": "<project_path>"
},
"name": "upgrade_project_libraries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraries | No | The nicknames of the libraries to convert. Default: all libraries of the project tables. | |
| project_path | Yes | The .kicad_pro file or the project folder. | |
| include_outside | No | True also converts the libraries outside the project folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |