wire_pins_to_net
Connect multiple component pins to a shared net label with a single schematic update. Specify pins, label text, and wire direction to create stubs and net labels in one operation.
Instructions
Wire multiple component pins to the same net label.
Wires each pin with a short stub and a shared net label, one file write.
Args:
pins: List of {"reference": "R1", "pin": "1"} dicts
label_text: Net label text (e.g. "GND", "VCC")
direction: Wire direction: "auto", "left", "right", "up", "down"
stub_length: Wire stub length in mm (default 2.54)
auto_pwr_flag: Auto-place PWR_FLAG when net has power_in but no power_out (default True)
schematic_path: Path to .kicad_sch file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pins | Yes | ||
| direction | No | auto | |
| label_text | Yes | ||
| stub_length | No | ||
| auto_pwr_flag | No | ||
| schematic_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |