ipc_place_footprints
Place footprints on the board in the PCB editor of the running KiCad.
Instructions
Place footprints on the board in the PCB editor of the running KiCad.
KiCad does the change. One call is one undo step. The tool checks all placements first, and changes nothing when a check fails. The tool can only change the side: a change of the position, the rotation or the lock gives an error (the limits footprint_update_loses_data and footprint_move_children of ipc_status). A footprint that is not on F.Cu or B.Cu gives an error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"board_path": "<board_path>",
"placements": "<placements>",
"flip_direction": "<flip_direction>"
},
"name": "ipc_place_footprints"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_path | Yes | The path of the .kicad_pcb file that is open in the PCB editor. | |
| placements | Yes | For each footprint: the reference, and the side ("top" or "bottom"). x_mm, y_mm, rotation_deg and locked give an error. | |
| flip_direction | Yes | The flip of a footprint to the other side: "left_right" (around the Y axis) or "top_bottom" (around the X axis). KiCad flips around the position of the footprint. The API cannot read the flip direction of the PCB editor (Editing Options): when the user did not give the direction, ask the user. | |
| override_locks | No | Flip also a locked footprint, as the PCB editor does with "Override locks". With false, a locked footprint that must change its side gives an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |