Swap footprints
swap_footprintReplace footprints in place with another footprint from a library in the project's fp-lib-table (library:name): the reference, value, position, rotation (or rot_deg), side, lock and schematic link stay, and nets move pad by pad. pad_map maps a NEW pad number to the OLD pad whose net it takes, for packages numbered differently. The schematic symbols' Footprint fields are updated too. Reports new pads left without a net and old nets left behind.
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": {
"design_id": "<design_id>",
"swaps": "<swaps>"
},
"name": "swap_footprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swaps | Yes | ||
| wait_s | No | Seconds to wait (default 55); a job still running comes back "running" for get_board_job. | |
| design_id | Yes | The design id returned by import_kicad_project or list_designs. |