KiCad libraries
librarySearch and inspect installed KiCad symbol and footprint tables to find valid lib_id/footprint IDs, read exact pin names, and repair missing or stale table entries before schematic placement.
Instructions
Search and inspect the KiCad symbol and footprint libraries this machine has (global + project tables): find a valid lib_id / footprint before sch_apply place, and read exact pin names. action: search_symbols (query = part number, name or keywords) | search_footprints (query; filters = footprint globs) | symbol_info (lib_id -> pins with number, name, type, unit; default footprint) | footprint_info (fp_id -> pads, courtyard, 3D model) | list (libraries in the active tables) | repair (fix "library not found": rebuilds missing or stale global tables; dry_run defaults to TRUE). Examples: library(action='search_symbols', query='USB C receptacle') · library(action='symbol_info', lib_id='Device:R')
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": {
"action": "<action>"
},
"name": "library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib | No | Restrict a search to one library nickname. | |
| kind | No | list: which tables (default sym). | |
| pins | No | symbol_info: include pins (default true). | |
| fp_id | No | Footprint 'Library:Name' for footprint_info. | |
| limit | No | Max results (default 15). | |
| query | No | ||
| action | Yes | ||
| lib_id | No | Symbol 'Library:Name' for symbol_info. | |
| dry_run | No | repair: report only (default true). | |
| filters | No | search_footprints: space-separated globs, e.g. a symbol's fp_filters. | |
| project | No | project path (default: active) |