doctor
Diagnose ST-Link probe visibility, serial port resolution, and cross-toolchain installation before board operations; report the exact missing prerequisite when flashing or build fails.
Instructions
Diagnose the bench: is the ST-Link probe visible, is the console serial port resolvable, is the cross toolchain installed?
Run this before anything else when a board operation fails — and
ALWAYS when a tool returns status "incomplete" or code
CAPABILITY_UNAVAILABLE; the report names the exact missing link.
Read-only. Findings are listed in data.log under "issues:"; an empty
problems list with exit_code 0 means every prerequisite is healthy.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | No | Path to the board profile YAML (e.g. boards/apollo-h743.yaml). Omit to use the server's --board argument, else the default search path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| data | No | ||
| policy | No | ||
| status | Yes | ||
| summary | Yes | ||
| evidence | No | ||
| warnings | No | ||
| exit_code | No | ||
| schema_version | No | 1.0 |