Run a CrossPad workflow recipe
crosspad_workflowRun a full recipe as one task: build, OTA flash, verify APP_SHA and run HIL scenarios, stopping at the first failed step and releasing the bench. Returns a task handle with per-step evidence.
Instructions
[ESP HW] Run a whole procedure as one task, each step passing only on a measured fact and the first failure stopping it. recipe=verify_change: claim the bench, build the firmware, OTA flash it, wait out the trial boot until the running slot is confirmed and APP_SHA equals the built ELF, run the HIL scenarios (default smoke), release the bench whatever happened. It flashes, so it asks once before it starts (dry_run=true lists the steps and the preflight, read-only). recipe=new_app {id, name, visibility?}: idf.py app-new, check the registered name is at most 31 characters, fullclean + build. recipe=install_app {app_name, ref?}: install a registry app, check apps.json, fullclean + build. recipe=list shows every recipe with its steps and parameters. A parameter a recipe does not know is refused. It returns a task handle (poll with crosspad_task; the result carries steps [{step, ok, evidence, ms}], failed_step and, for verify_change, firmware_left). Tier: danger for a verify_change run and for a new_app that creates a GitHub repo (visibility private or public: it asks once), mutate-host for the other app runs, read for list and dry_run; annotations are advertised at the worst case.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipe": "<recipe>"
},
"name": "crosspad_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | The recipe's parameters (recipe=list shows each one's contract); a name it does not know is refused, never dropped. | |
| recipe | Yes | list: every recipe with its steps and parameters; verify_change: build, flash and test a firmware change on the board; new_app: create and build an app; install_app: install a registry app and build. | |
| dry_run | No | Plan and preflight only: nothing is built, written, claimed or asked about. | |
| wait_seconds | No | 0 (default) returns the task handle at once, poll it with crosspad_task. >0 waits that long and inlines the steps so far; a timeout is not an error. | |
| confirm_token | No | Token from a confirmation_required result; re-issue the identical call with it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| hint | No | ||
| next | No | ||
| plan | No | ||
| task | No | ||
| tool | No | ||
| error | No | ||
| steps | No | ||
| notice | No | ||
| params | No | ||
| recipe | No | ||
| status | No | ||
| details | No | ||
| dry_run | No | ||
| outcome | No | ||
| recipes | No | ||
| success | Yes | ||
| preflight | No | ||
| elicitation | No | ||
| failed_step | No | ||
| confirmation | No | ||
| firmware_left | No | ||
| unknown_params | No |