run_recover
Recover your own active task run after its lease expires: issue a new lease, cancel lingering running executions, and record the reason in task history. Use force only if the prior holder is gone.
Instructions
Take back your own active run of a task after its lease expired, for example after the session was interrupted for longer than the lease. It issues a new lease to you, cancels the run's executions still marked as running, and records the reason in the task history. Only the actor who owns the lease can recover it. While the lease is still valid this fails; pass force=true only when you know the previous holder of your lease is gone. To simply continue your own run, call task_start with the task_id instead.
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>",
"reason": "<reason>"
},
"name": "run_recover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Recover even though the lease has not expired yet. Use only when the previous session holding your lease is certainly gone. | |
| reason | Yes | Why the run is recovered; recorded in the task history. | |
| run_id | Yes | Canonical UUIDv7 of the active run to recover, as returned by task_start or task_show. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| error | No | ||
| snapshot | No | ||
| schema_version | Yes |