crosspad_doctor
Run environment checks for the CrossPad host and daemon, report failures with fixes, and restart the daemon to apply updates or release OS resources.
Instructions
Environment doctor. Host checks: hil_python interpreter, crosspad-hil version vs the one this server needs, platform-idf root, ESP-IDF env, crosspad-pc root, per-rev build dirs and firmware age, simulator binary staleness. Daemon checks merged in: udev/dialout, port locks (holder PID + purpose), rtmidi/ALSA/sounddevice visibility. Also reports the daemon as a process: uptime, ops served, open handles and the OS resources it holds (ALSA sequencer clients, fds). Each check is {name, ok, detail, fix}; ok is false when any check fails. Run this first when a device tool errors. action=restart_daemon restarts the crosspad-hil daemon — how a newly installed crosspad-hil or a new scenario becomes visible without restarting this server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | check: run every check; restart_daemon: stop and start the crosspad-hil daemon again — the way to pick up a newly installed crosspad-hil or a new scenario, and the repair when it has accumulated OS resources. Open console/cdc handles do not survive it | check |
| confirm_token | No | Echo the token from a confirmation_required reply to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| hint | No | ||
| tool | No | ||
| error | No | ||
| action | No | ||
| checks | No | ||
| daemon | No | ||
| details | No | ||
| success | Yes | ||
| resultType | No | ||
| confirmation | No | ||
| dropped_handles | No |