set_library_symbol_properties
Change the properties of a symbol of a project library, as the Symbol Properties dialog of the symbol editor of KiCad 10 does.
Instructions
Change the properties of a symbol of a project library, as the Symbol Properties dialog of the symbol editor of KiCad 10 does.
A field name that the symbol has gets the new text (a mandatory name in any case). A new name gives a new hidden field at (0, 0), with the text size of the symbol editor settings. A text of None removes a user field (the five mandatory fields cannot be removed). As in the dialog, a text that is a path to a file that exists ("/", "${", "./", "../") gets "file://" before it, the escapes ("{slash}") become characters, and the text of a mandatory field has no white space at its ends. The footprint filters replace the list (spaces become "_"). KiCad saves the library (kicad-cli), and a second save must give the same bytes. The library must be in the project table, in the version of the installed KiCad. 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>",
"lib_id": "<lib_id>"
},
"name": "set_library_symbol_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | The field texts by name. None as a text removes the user field. | |
| lib_id | Yes | The symbol, "<library>:<symbol>", of a library of the project table. | |
| keywords | No | The new keywords. None: no change. "" removes them. | |
| project_path | Yes | The .kicad_pro file or the project folder. | |
| footprint_filters | No | The new list of footprint filters. None: no change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |