get_library_symbol
Retrieve a KiCad library symbol's fields, units, and pins. Use it to inspect symbol definitions, including inherited fields, flags, and pins from parent and root symbols, before placing or editing components.
Instructions
Show the content of a symbol of a KiCad library: fields, units and pins.
The library comes from the library tables of the installed KiCad and of the project, as in the symbol chooser of KiCad. A derived symbol (extends ...) is shown as KiCad places it: the fields of the symbol and of its parents, the flags of its parent, and the units and pins of its root symbol.
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": {
"lib_id": "<lib_id>"
},
"name": "get_library_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib_id | Yes | The library ID, for example "Device:R" or "MCU_ST_STM32F4:STM32F405RGTx". | |
| project_path | No | Optional project (.kicad_pro, .kicad_sch, .kicad_pcb or its directory), to include its libraries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |