add_via
Place a via at specified coordinates on a KiCad PCB, with options for size, drill, net, and layers.
Instructions
Add a via at a position.
Args:
x: X position
y: Y position
size: Via pad size in mm
drill: Drill diameter in mm
net: Net number
layers: Via layers (default: ["F.Cu", "B.Cu"])
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| net | No | ||
| size | No | ||
| drill | No | ||
| layers | No | ||
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |