Create Footprint
create_footprintCreate a KiCAD footprint (.kicad_mod) with SMD/THT pads, courtyard, silkscreen, and fab rectangles inside a .pretty library.
Instructions
Create a new KiCAD footprint (.kicad_mod) inside a .pretty library directory. Supports SMD and THT pads, courtyard, silkscreen, and fab-layer rectangles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Footprint name, e.g. 'R_0603_Custom' | |
| pads | No | List of pads to add (can be empty for outlines-only footprints) | |
| tags | No | Space-separated tag string, e.g. 'resistor SMD 0603' | |
| fabLayer | No | Fab-layer rectangle on F.Fab (shows component body) | |
| courtyard | No | Courtyard rectangle on F.CrtYd (recommended: 0.25 mm clearance around pads) | |
| overwrite | No | Replace existing footprint file (default: false) | |
| silkscreen | No | Silkscreen rectangle on F.SilkS | |
| description | No | Human-readable description | |
| libraryPath | Yes | Path to the .pretty library directory (created if missing). E.g. C:/MyProject/MyLib.pretty | |
| refPosition | No | Position of the REF** text (default: 0, -1.27) | |
| valuePosition | No | Position of the Value text (default: 0, 1.27) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |