move_footprint
Relocate a PCB footprint by reference designator to new X/Y coordinates, with optional rotation and layer flip for mirroring. Directly updates the .kicad_pcb layout.
Instructions
Move a footprint to a new position.
Args:
reference: Reference designator (e.g. "R1")
x: New X position
y: New Y position
rotation: New rotation (None = keep current)
layer: New layer. Naming the other side flips the footprint: every pad,
graphic and text layer mirrors with it, the local geometry mirrors,
and text gains a mirrored justification, which is what KiCad's own
flip does. A footprint carrying a construct whose flip has not been
measured here is refused rather than half-transformed.
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| layer | No | ||
| pcb_path | No | ||
| rotation | No | ||
| reference | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |