by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
schematic_data: answers ok with 0 components when the current document is a SchLib (should refuse); filePath is ignored
What I ran (bridge 0.2.45 dev build, Altium Designer 26.11.1, DESKTOP-BAR6S0F). The focused document was a .SchLib (left current by an earlier altium_show_symbol):
altium_schematic_data {"filePath":"C:/Users/olive/Documents/AdomAiFlow/symtest/SymTest.SchDoc"}
Expected: that sheet's 31 components. Failing that, a refusal: the verb doc says it "Needs a .SchDoc current; 'no current schematic' -> altium_open_document / altium_show_schematic."
What happened:
{"components": [], "count": 0, "document": "C:/Users/olive/Documents/AdomAiFlow/symtest/library/SymTest.SchLib", "ok": true}
The read accepted a schematic LIBRARY as the current sheet and answered ok with zero parts. A caller that skips document concludes the sheet is empty. filePath was ignored silently, since the verb has no such argument. After altium_show_schematic {filePath}, the same call returned all 31 components.
Suggested fix:
- Refuse with
errorCode: no_current_schematicwhen the current document's kind is not SCH (SCHLIBincluded). - Accept
filePath, asread_boardandshow_schematicdo: open or activate that sheet first, then read it.