move_footprint
Move a KiCAD footprint by reference designator to specified X/Y coordinates, optionally adjusting rotation. Preview with dry run before applying.
Instructions
Moves a footprint (component) to a new position on the board and optionally changes its rotation angle. The footprint is identified by its reference designator (e.g. U1, R1, C1). Positions are in millimeters relative to the board origin. Y increases toward the bottom of the board (KiCAD convention). This creates one undo step: the user can press Ctrl+Z in KiCAD to revert the move. Use dry_run=true to preview the intended position change without actually moving the component. The preview shows current position, target position, and delta. WARNING: This modifies the board. Child pads follow the footprint automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x_mm | Yes | Target X position in millimeters from the board origin. | |
| y_mm | Yes | Target Y position in millimeters from the board origin. Y increases toward the bottom of the board. | |
| dry_run | No | If true, compute and report what would change without actually moving the footprint. Defaults to false. | |
| reference | Yes | Reference designator of the footprint to move. Examples: U1, R1, C1, J1, D1. Use list_footprints to discover available references. | |
| rotation_deg | No | Target rotation angle in degrees (0-360). Omit to keep the current rotation unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |