Import part
parts_importMakes a provider part usable in a KiCad project by returning its lib_id and footprint for schematic placement, with options to inspect the symbol/footprint or force stock/provider sources.
Instructions
Make a provider's part usable in this project: returns the lib_id + footprint for sch_apply place. sch_apply
{"op":"place","part":...} calls this by itself; use it directly to inspect a part first or to force a source.
prefer='auto' (default) uses KiCad's stock symbol + footprint when it verifiably fits, else converts the provider's
symbol, footprint and 3D model into project libraries (registered in the project's lib tables); 'easyeda' forces the
provider's drawing, 'stock' fails if there is no stock fit. Footprint pads are checked against symbol pins and
KiCad itself loads the result. preview=true returns pictures of the symbol and footprint.
Example: parts_import(part='C165948')
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "parts_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lcsc | No | shorthand for part=<C-number>, provider='lcsc' | |
| part | No | the provider's part number | |
| prefer | No | lcsc only | |
| preview | No | attach a PNG (default false) | |
| project | No | project path (default: active) | |
| with_3d | No | download/convert the 3D model (default true) | |
| provider | No | parts provider to ask (default: the project's parts.providers, in order): lcsc | local | kicad | a third-party name |