add_power_symbol
Place power symbols like VCC or GND with automatic PWR_FLAG addition to satisfy ERC requirements in KiCad schematics.
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.
Automatically places a PWR_FLAG at the same position so the net
satisfies ERC (power pin driven).
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 power symbol .kicad_sym if not in schematic
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 | ||
| x | Yes | ||
| y | Yes | ||
| rotation | No | ||
| symbol_lib_path | No | ||
| schematic_path | No | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |