Retry job
retry_jobStart a new job with the same inputs as a finished job and return the new job_id. Environment variable values are not stored, so pass env again if the original job had any. Use it after a failure caused by something outside the job (e.g. a flaky download); to change the command, start a new job 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": {
"job_id": "<job_id>"
},
"name": "retry_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables of the original job (required if it had any). | |
| job_id | Yes | Job ID (job_…) returned by run_job. | |
| idempotency_key | No | Optional idempotency key for the new job. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ID of the new job. | |
| status | Yes | State of the new job. | |
| retry_of | Yes | ID of the original job. |