place_component
Add resistors, capacitors, ICs, and other symbols from any library to a KiCad schematic at specified coordinates with reference, value, rotation, and mirror.
Instructions
Place a schematic symbol: resistor, capacitor, inductor, diode, LED, transistor, crystal, switch, connector, or an IC such as a microcontroller or regulator chip. Any lib_id in a library works.
Args:
lib_id: Library identifier (e.g. "Device:R", "Device:C", "MyLib:MyPart")
reference: Reference designator (e.g. "R1", "U1")
value: Component value (e.g. "10K", "100nF")
x: X position in schematic units (mm)
y: Y position in schematic units (mm)
rotation: Rotation angle in degrees (0, 90, 180, 270)
symbol_lib_path: Path to a .kicad_sym file that defines the symbol, for a
library outside KiCad's stock set. Optional; omit to load the symbol
from the stock library named by the lib_id prefix.
mirror: Mirror axis ("x", "y", or "" for none)
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
project_path: Path to .kicad_pro file (for correct hierarchy resolution in sub-sheets)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| value | Yes | ||
| lib_id | Yes | ||
| mirror | No | ||
| rotation | No | ||
| reference | Yes | ||
| project_path | No | ||
| schematic_path | No | ||
| symbol_lib_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |