add_power_symbol
Place VCC, GND, or other power symbols at specified coordinates in a KiCad schematic. Use it during schematic capture to define power nets and connect components to rails.
Instructions
Place a power symbol (VCC, GND, +3V3, etc.).
Uses place_component internally. Power symbols are regular symbols
from the 'power' library with isPower=True.
Places only the symbol asked for. A PWR_FLAG tells ERC the net has a
source it cannot see, which only the designer knows, so add one with
lib_id="power:PWR_FLAG" on each net that needs it.
Args:
lib_id: Library ID (e.g. "power:VCC", "power:GND")
reference: Reference (e.g. "#PWR01")
x: X position
y: Y position
rotation: Rotation in degrees
symbol_lib_path: Path to a .kicad_sym file that defines the power symbol,
for a library outside KiCad's stock set. Optional; omit to load it
from the stock library named by the lib_id prefix.
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
project_path: Path to .kicad_pro file (for sub-sheet instance tracking)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| lib_id | Yes | ||
| rotation | No | ||
| reference | Yes | ||
| project_path | No | ||
| schematic_path | No | ||
| symbol_lib_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |