Check Courtyard Overlaps
check_courtyard_overlapsDetect courtyard overlaps between footprints and boundary violations, using virtual placements to validate component moves before applying.
Instructions
Detect courtyard overlaps between footprints and (optionally) flag courtyards that extend past the board outline. Accepts a positions dict of hypothetical placements so an AI can validate a proposed move_component / place_component before committing it. Returns overlap pairs with intersection extents (mm) and per-component boundary violations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | Limit the check to these refs (default: every footprint on the board). | |
| margin | No | Extra clearance in mm added around every courtyard (default 0). Useful to enforce a manufacturing keepout wider than the symbol's declared courtyard. | |
| positions | No | Virtual placements: map of reference designator to [x, y] or [x, y, rotation_degrees] in mm. Each listed ref is checked AS IF it were at the given coordinates. Unspecified refs use their current board position. | |
| board_outline | No | Optional board outline bbox override. Default: derived from Edge.Cuts. | |
| include_boundary | No | Also flag courtyards that extend past the board outline (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |