lib_easyeda_import
Convert EasyEDA or LCSC parts into KiCad symbol/footprint files or an ordered Altium library plan, using online IDs or saved JSON for offline, reproducible conversion.
Instructions
Convert an EasyEDA / LCSC part to KiCad files or an Altium plan.
Independent implementation from EasyEDA's published format spec, so symbol and footprint geometry, pads, drills, silkscreen and metadata all convert without any third-party converter.
Source: lcsc_id fetches online (e.g. "C7420"), or
payload_path reads a saved component JSON, which keeps the
whole conversion offline and reproducible.
target="kicad": writes <name>.kicad_sym and
<name>.kicad_mod into output_dir and returns their paths.
With fetch_3d (default on) the part's 3D model is fetched and
converted to <name>.wrl, which the footprint then references.
Altium needs STEP and cannot use VRML, so this is KiCad only.
target="altium": returns an ORDERED PLAN of this server's own
library tools (lib_create_symbol, lib_add_pins,
lib_create_footprint, lib_add_footprint_pads, lib_link_footprint,
...) that recreates the part in schlib_path / pcblib_path.
Nothing is written to Altium: review the plan, then execute the
steps (tool_invoke drives them directly). Altium's binary library
formats are never synthesized, the bridge authoring API is used
instead.
target="inspect": parse only, return the component summary and warnings. Use this first on an unfamiliar part.
DATASHEET DISCIPLINE: an imported footprint is a vendor drawing,
not ground truth. Audit it with
lib_audit_footprint_vs_datasheet against the manufacturer
land pattern before trusting it. Polygon pads and slotted holes
have no faithful equivalent and are reported in warnings.
Returns: {"ok": ..., "component": {...}, "warnings": [...]} plus "files" (kicad) or "steps"/"summary" (altium).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | altium | |
| lcsc_id | No | ||
| fetch_3d | No | ||
| output_dir | No | ||
| pcblib_path | No | ||
| schlib_path | No | ||
| symbol_name | No | ||
| payload_path | No | ||
| footprint_name | No | ||
| include_body_art | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||