Create Symbol
create_symbolCreate a custom KiCAD schematic symbol with pins, shapes, and metadata in a .kicad_sym library, creating the library file if it does not exist.
Instructions
Create a new schematic symbol in a .kicad_sym library file (created if missing). After creation, use register_symbol_library so KiCAD finds it. Pin positions are where the wire connects; the symbol body is drawn between them.
Coordinate tips:
Body rectangle typically spans ±2.54 to ±5.08 mm
Pins on left side: at.x = body_left - length, angle=0 (wire goes right)
Pins on right side: at.x = body_right + length, angle=180 (wire goes left)
Pins on top: at.y = body_top + length, angle=270 (wire goes down)
Pins on bottom: at.y = body_bottom - length, angle=90 (wire goes up)
Standard pin length: 2.54 mm, standard grid: 2.54 mm
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Symbol name, e.g. 'TMC2209', 'MyOpAmp' | |
| pins | No | List of pins (can be empty for graphical-only symbols) | |
| inBom | No | Include in BOM (default true) | |
| onBoard | No | Include in netlist for PCB (default true) | |
| keywords | No | Space-separated search keywords | |
| datasheet | No | Datasheet URL or '~' | |
| footprint | No | Default footprint, e.g. 'Package_SO:SOIC-8_3.9x4.9mm_P1.27mm' | |
| overwrite | No | Replace existing symbol with same name (default false) | |
| polylines | No | Polyline graphics for custom body shapes (op-amp triangles, etc.) | |
| rectangles | No | Body rectangle(s). Typically one rectangle defining the IC body. | |
| description | No | Human-readable description | |
| libraryPath | Yes | Path to the .kicad_sym file (created if missing) | |
| referencePrefix | No | Schematic reference prefix: 'U' (IC), 'R' (resistor), 'J' (connector), etc. Default: 'U' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |