feat: add get_net_at_point tool for coordinate-based net lookup

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

View File

@@ -1523,6 +1523,35 @@ SCHEMATIC_TOOLS = [
"required": ["schematicPath", "x", "y"],
},
},
{
"name": "get_net_at_point",
"title": "Get Net At Point",
"description": (
"Returns the net name at a given (x, y) coordinate in a schematic, "
"or null if no net label or wire endpoint is present at that position. "
"Checks net label positions first, then wire endpoints. "
"Useful for quickly identifying what net occupies a specific coordinate "
"without traversing the full wire graph."
),
"inputSchema": {
"type": "object",
"properties": {
"schematicPath": {
"type": "string",
"description": "Path to the schematic file (.kicad_sch)",
},
"x": {
"type": "number",
"description": "X coordinate in mm",
},
"y": {
"type": "number",
"description": "Y coordinate in mm",
},
},
"required": ["schematicPath", "x", "y"],
},
},
{
"name": "get_pin_net",
"title": "Get Pin Net",