Run a hardware-in-the-loop scenario
crosspad_hil_runList and run hardware-in-the-loop test scenarios on a real CrossPad board; start a scenario as a task and retrieve its console log and report links.
Instructions
[ESP HW] Run a hardware-in-the-loop (HIL) test scenario on a real CrossPad board; these are the firmware test suite (there are no firmware unit tests). action=list returns the daemon's catalog with each scenario's parameters (smoke, stability, rt_glitch, app_churn, kit_churn, usb_mode_cycle, midi_stress, audio_loopback, sampler_record, ble_midi and more); action=run starts one as a task and returns a handle to poll with crosspad_task, and the report comes back with its console log and report.json as links. A run that passes with no stimulus in the window proves nothing (kit_churn fails itself for that reason). Safety: a run with params.flash rewrites the firmware and asks for confirmation (annotations are static, so the tool is advertised at that worst case); action=list only reads; every scenario without params.flash runs as given, fw_switch and fw_update (which install and switch firmware) included.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crosspad_hil_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | list: the scenario catalog with each one's parameters; run: start one as a task | run |
| device | No | Device id (dev_xxxx); implicit when one board is attached | |
| params | No | Scenario parameters; action=list reports the names, types and defaults each one takes | |
| scenario | No | Scenario name, e.g. smoke, app_churn, kit_churn, stability, ble_midi. action=list gives the full catalog. Required for run | |
| confirm_token | No | Echo the token from a confirmation_required reply to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| hint | No | ||
| next | No | ||
| poll | No | ||
| task | No | ||
| tool | No | ||
| error | No | ||
| action | No | ||
| device | No | ||
| notice | No | ||
| outcome | No | ||
| success | Yes | ||
| scenario | No | ||
| scenarios | No | ||
| elicitation | No | ||
| confirmation | No |