Repair a failed workflow
repair_workflowRepair a saved workflow whose run failed. Fetch Hive finds the step that failed, rewrites only that step so the error goes away, checks it, and saves it as a new draft version. The deployed workflow is not changed, and restore_version undoes it. Use it after diagnose_run says the workflow itself is wrong and apply_quick_fixes could not fix it. It does not repair a missing connection, a missing input or a spending limit: the answer then says what the person needs to do. It can take up to a minute: when the answer is not ready the result has a build_id and status building; call get_build with it. Then offer test_run_draft to check the repair.
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": {
"workflow_id": "<workflow_id>"
},
"name": "repair_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | The failed run to repair from. Left out: the workflow's latest failed run. | |
| workflow_id | Yes | The workflow to repair. |