Remove redundant vias
prune_viasRemove every via the board does not need: groups of vias come out, the zones are refilled and KiCad's unconnected count compared, and a via stays only if removing it disconnects something. nets limits the candidates (GND and the plane rails first: pours already join most of their pads). Runs for minutes on a large board; then fill_zones, run_drc.
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>"
},
"name": "prune_vias"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nets | No | ||
| wait_s | No | Seconds to wait (default 55); a job still running comes back "running" for get_board_job. | |
| workers | No | ||
| design_id | Yes | The design id returned by import_kicad_project or list_designs. |