create_project_library
Make a new, empty library and add it to the project library table, as "New Library" of the symbol editor and of the footprint editor of KiCad 10 does.
Instructions
Make a new, empty library and add it to the project library table, as "New Library" of the symbol editor and of the footprint editor of KiCad 10 does.
A symbol library is a .kicad_sym file with no symbols, in the format of KiCad 10.0. A footprint library is an empty .pretty folder. The new row has the nickname name, the type KiCad, and a URI with a path variable of KiCad or ${KIPRJMOD} when one holds the library. The tool does not replace a library that exists. KiCad must not have the project open: KiCad reads the project tables only when it opens the project. 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>",
"kind": "<kind>",
"name": "<name>"
},
"name": "create_project_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | "symbol" or "footprint". | |
| name | Yes | The name of the library: the file name with no extension, and the nickname in the table. | |
| folder | No | The folder of the new library: an absolute path, or a path relative to the project folder. Default: the project folder. | |
| project_path | Yes | The .kicad_pro file or the project folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |