lib_create_passive_symbol
Create a standard two-pin passive symbol—resistor, capacitor, inductor, diode, LED, crystal, or fuse—with left/right pins in one call for EasyEDA schematic libraries.
Instructions
Create a standard 2-pin PASSIVE symbol in ONE call.
Draws the recognizable glyph for a resistor / capacitor /
polarized_capacitor / inductor / diode / led / crystal / fuse,
with pin 1 on the left and pin 2 on the right. Composes
lib_create_symbol + lib_add_pins + the
glyph primitives (emitted as raw mils, so the LED's emission
arrows and the crystal's resonator keep their sub-100-mil detail).
Args: name: Component name (e.g. "R_0402"). kind: "resistor" | "capacitor" | "polarized_capacitor" | "inductor" | "diode" | "led" | "crystal" | "fuse" (aliases r/c/cap_pol/electrolytic/cp/l/d/xtal/f accepted). designator_prefix: default by kind (R/C/L/D/Y/F) if omitted. description: Component description.
Returns: Dict with the symbol name and per-step bridge results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| description | No | ||
| designator_prefix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||