Add query_zones tool for auditing copper pours (#174)

query_traces silently omits PCB_ZONE_T objects, so layer-usage audits
miss power planes and GND pours entirely. query_zones complements it by
iterating board.Zones() and returning each zone's net, layers, priority,
fill state, min thickness, bounding box, and filled area, with the same
net/layer/boundingBox filter surface as query_traces.
This commit is contained in:
kevargaso
2026-05-18 13:40:18 -05:00
committed by GitHub
parent 4e845f24ce
commit 40d6d6bba1
5 changed files with 182 additions and 0 deletions

View File

@@ -35,6 +35,13 @@ All notable changes to the KiCAD MCP Server project are documented here.
### New MCP Tools
- `query_zones` — Query copper zones (filled pours) on the board with optional
filters by net, layer, or bounding box. Returns one entry per zone with its
net, layers, priority, fill state, min thickness, bounding box, and filled
area. Complements `query_traces`, which only reports tracks/vias and silently
omits power-plane and GND pours — making layer-usage audits incomplete on any
board that uses copper zones.
- `set_schematic_component_property` — Add or update a single custom property
(BOM / sourcing field) on a placed schematic symbol. Convenience wrapper
around `edit_schematic_component` for the common case of attaching one MPN /