Clean up tracks and vias
cleanup_boardSweep the routing: zero-length and duplicate tracks, stub tracks (a free end, and everything the track touches stays joined without it), and vias that meet their net on fewer than two layers. Contact is copper overlap, as KiCad judges it. Refills the zones first so pours count as connections. Locked items stay. The board is put back if the unconnected count or the DRC errors rise. A track running on past its last junction is cut back to it (trim_overhangs). list_removed names every item that went.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refill | No | ||
| wait_s | No | Seconds to wait for the job (default 55). A job still running comes back with status "running": follow it with get_board_job. | |
| design_id | Yes | The design id returned by import_kicad_project or list_designs. | |
| list_removed | No | ||
| trim_overhangs | No | ||
| dangling_tracks | No | ||
| duplicate_tracks | No | ||
| unconnected_vias | No |