auto_place_decoupling_cap
Place a decoupling capacitor and wire it to power and ground nets in a KiCad schematic, specifying position, value, reference, and net labels.
Instructions
Place a decoupling capacitor and wire it to power/ground nets.
Places the cap, wires pin 1 (top) to power_net and pin 2 (bottom)
to ground_net via stub wires + labels.
Args:
lib_id: Cap symbol (e.g. "Device:C")
reference: Reference (e.g. "C5")
value: Cap value (e.g. "100nF")
x: X position
y: Y position
power_net: Label for pin 1 (e.g. "VCC", "+3V3")
ground_net: Label for pin 2 (e.g. "GND", "PGND")
rotation: Rotation in degrees (default 0)
symbol_lib_path: Path to .kicad_sym if using custom lib
schematic_path: Path to .kicad_sch file
project_path: Path to .kicad_pro file (for sub-sheet instance tracking)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lib_id | Yes | ||
| reference | Yes | ||
| value | Yes | ||
| x | Yes | ||
| y | Yes | ||
| power_net | Yes | ||
| ground_net | Yes | ||
| rotation | No | ||
| symbol_lib_path | No | ||
| schematic_path | No | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |