Run it again
retry_runStart a run again with the same inputs (a workflow, as it is now) or the same message (an agent). It costs money like a new run: call it first without approved to get the cost, and only call again with approved: true after the person says yes. Check diagnose_run first: some failures need a fix before another run can work. For a workflow run, from_step runs only that step and the steps after it and keeps the results the earlier steps already produced, so they are not paid for again: use it when a late step failed or was fixed. Without approved it answers the plan (which steps run, which are kept, the cost and any warnings) to show the person.
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": {
"run_id": "<run_id>"
},
"name": "retry_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run to repeat. | |
| approved | No | true only after the person has agreed to the new run and its cost. | |
| from_step | No | Workflow runs only. The step to retry from: its id from get_run's steps (for example step_4) or its name. The steps before it keep their results. A step inside a loop cannot be chosen; use the loop step. | |
| only_failed_items | No | Only with from_step on a loop step. true (the default when some items finished) runs only the items that did not finish, so a loop that sends does not send twice. false runs every item again. |