lib_generate_symbol_from_pintable
Create a KiCad symbol (.kicad_sym) from a pin table. Specify symbol name and pin list to generate and save the symbol file.
Instructions
Generate a KiCad symbol (.kicad_sym) from a pin table and save it.
Each pin dict must contain:
number (str | int), name (str).
Optional per-pin keys:
pin_type (input/output/bidirectional/passive/power_in/power_out/…),
side (left/right/top/bottom), unit (int ≥ 1).
Args:
name: Symbol name, used as both the library entry and the default value.
pins: List of pin specification dicts.
reference_prefix: Ref-des prefix (U, J, Q, R, …).
description: Short human description.
datasheet: Datasheet URL or path.
footprint_hint: Default footprint (e.g. "Package_SO:SOIC-8_3.9x4.9mm_P1.27mm").
output_path: Optional relative path inside output_dir. Defaults to
symbols/<name>.kicad_sym.
Returns: Confirmation with the saved file path, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| pins | Yes | ||
| datasheet | No | ||
| description | No | ||
| output_path | No | ||
| footprint_hint | No | ||
| reference_prefix | No | U |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |