feat: add connected_pin_count to list_schematic_nets and list_floating_labels tool

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Eugene Mikhantyev
2026-04-12 15:46:32 +01:00
parent e826cf3d32
commit 4895bf169c
5 changed files with 786 additions and 1 deletions

View File

@@ -1881,6 +1881,27 @@ SCHEMATIC_TOOLS = [
"required": ["schematicPath"],
},
},
{
"name": "list_floating_labels",
"title": "List Floating Net Labels",
"description": (
"Returns all net labels in the schematic that are not connected to any component pin. "
"A label is 'floating' when no component pin's coordinate falls on the wire-network "
"reachable from the label's anchor position. "
"Floating labels indicate misplaced or off-grid labels that will cause ERC errors. "
"Does not require the KiCad UI to be running."
),
"inputSchema": {
"type": "object",
"properties": {
"schematicPath": {
"type": "string",
"description": "Path to the .kicad_sch schematic file",
}
},
"required": ["schematicPath"],
},
},
{
"name": "snap_to_grid",
"title": "Snap Schematic Elements to Grid",