get_library_footprint
Inspect a KiCad library footprint to display pads, courtyard, attributes, and 3D model paths resolved from installed and project library tables.
Instructions
Show the content of a footprint of a KiCad library: pads, courtyard, attributes, 3D models.
The library comes from the library tables of the installed KiCad and of the project, as in the footprint chooser of KiCad. pcbnew of the installed KiCad reads the footprint, thus the values are those of KiCad. The tool finds the file of each 3D model as KiCad finds it.
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_footprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib_id | Yes | The library ID, for example "Resistor_SMD:R_0603_1608Metric". | |
| project_path | No | Optional project (.kicad_pro, .kicad_sch, .kicad_pcb or its directory), to include its libraries and to set ${KIPRJMOD} for the 3D models. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |