Batch Connect
batch_connectPlace net labels on multiple pins at once to wire nets quickly. Supports sheet-local and global labels, with optional replacement of existing labels.
Instructions
Place net labels on multiple pins in one call to wire nets quickly. 'connections' is a map {reference: {pin: netName}} where pin is a number or name. labelType selects 'label' (sheet-local, the default) or 'global_label' (connects across all sheets by name — use this for power rails and any net that spans sheets). For local labels, if a facing label for the same net is nearby a wire is drawn instead of a duplicate label; global labels are placed one-per-pin since they join their net by name. Set replace=true to clear any existing label at a pin first. Warns about power nets missing a PWR_FLAG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Delete existing labels at each pin before placing (default false) | |
| labelType | No | Label kind: 'label' = sheet-local (default); 'global_label' = connects across all sheets by name | label |
| connections | Yes | Map of reference -> {pin: netName} | |
| schematicPath | Yes | Path to the .kicad_sch file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |