Update PCB from schematic
pcb_syncUpdate a KiCad PCB from its schematic: add missing footprints, refresh fields and nets, swap changed parts, optionally remove deleted components, preserve placements, and create the board if missing.
Instructions
Update the PCB from the schematic (KiCad's "Update PCB from Schematic"); creates the .kicad_pcb if missing. Adds missing footprints beside the outline, updates fields, swaps changed footprints in place, assigns every pad's net and keeps existing positions. Copper follows renamed nets; copper left from deleted parts is reported. remove_extra=true deletes footprints (and their orphaned copper) that are no longer in the schematic. Refuses if the schematic has unannotated or duplicate references. board_build() runs this and the following steps. Example: pcb_sync()
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pcb_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| render | No | attach a PNG (default false) | |
| project | No | project path (default: active) | |
| while_open | No | refuse (default) | revert | |
| remove_extra | No | Delete board footprints whose symbol was deleted (default false: report only) | |
| update_footprints | No | Swap footprints whose schematic Footprint field changed (default true) |