create_library_part
Create a component library part from a KiCad footprint, generating its symbol and JLCPCB metadata for Fusion Electronics.
Instructions
Create a part in this server's component library from a KiCad footprint (.kicad_mod): from
KiCad's own libraries, or JLCPCB's footprint for a part exported with easyeda2kicad --full --lcsc_id=C... (set jlc_native=true for those: no rotation correction needed at JLC). The
symbol is generated: two-pin passives get the standard symbols (resistor, capacitor, diode,
LED, ...), anything else a box with its pins (pin_names maps pad -> pin name, pads sharing a
name join one pin; directions maps pin name -> in/out/io/pwr/pas/oc). jlc_code (C-number)
fills JLCPCB, and MF/MP from cached EasyEDA data when not given. Then open your Fusion library
and run insert_library_part, save_design, attach_3d_model (with the part's STEP file).
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": {
"footprint_path": "<footprint_path>",
"part_id": "<part_id>",
"deviceset": "<deviceset>",
"prefix": "<prefix>",
"value": "<value>"
},
"name": "create_library_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | No | ||
| value | Yes | ||
| prefix | Yes | ||
| part_id | Yes | ||
| jlc_code | No | ||
| deviceset | Yes | ||
| overwrite | No | ||
| pin_names | No | ||
| directions | No | ||
| jlc_native | No | ||
| description | No | ||
| manufacturer | No | ||
| footprint_path | Yes |