aiworkhub_manager_recipe_run
Runs a persisted recipe by ID with typed parameters and returns a bounded digest of exit code, duration, and output tails, keeping full logs retrievable.
Instructions
MANAGER EXECUTE: run one PERSISTED recipe and return a bounded digest.
What runs is the immutable stored manifest resolved from the registry, not
a mapping typed at call time: argv[0] is a manifest literal, the vector
is built from typed slots, and it is spawned as an execve list with no
shell. Read-only by default -- tool_recipes.validate_invocation refuses
a recipe whose declared capabilities grant_capabilities does not name,
and a write/network recipe additionally requires the repository
write gate to be open.
A non-zero exit is a RESULT, not an error: the digest carries the return
code, the duration, stdout/stderr tails capped at 4096 characters with
explicit truncation flags, and the path plus SHA-256 of the full output
file, so the whole stream stays retrievable without being carried here.
Every run persists a tool_recipes invocation receipt.
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_id": "<recipe_id>"
},
"name": "aiworkhub_manager_recipe_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detach | No | When true, queue the run as a detached host process and return its run_id at once; read the outcome with aiworkhub_manager_recipe_run_status. At most one detached run per repository executes at a time. | |
| params | No | Values for the recipe's typed argument slots, keyed by the slot names its manifest declares; omit when the recipe takes none. | |
| version | No | Recipe version to run, as listed by aiworkhub_manager_recipe_list; omit to run the highest stored version. | |
| recipe_id | Yes | Id of a persisted recipe, as listed by aiworkhub_manager_recipe_list. | |
| accept_task_id | No | Accept-gate binding, passed together with accept_request_id: the task whose review_ready candidate this run must cover. Implies detach; the recipe, version and params must equal .aiworkhub/config/accept_gate.json and the run executes on the combined candidate tree. Omit for an ordinary run. | |
| accept_request_id | No | Accept-gate binding, passed together with accept_task_id: the review_ready worker request whose exact candidate this run is bound to. Accept is refused until this run completed with returncode 0 on that candidate. | |
| grant_capabilities | No | Capabilities granted to this run; it must name every capability the recipe declares. Omit for a read-only recipe; a write or network recipe also needs the repository write gate open. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||