Cancel Job
cancel_jobStop a stuck or unwanted running command by killing its process inside a Docker sandbox. If the job already finished, it returns the final state unchanged.
Instructions
Stop a running command and kill its process inside the sandbox.
USE THIS when a command is clearly stuck or no longer needed. Safe on a job that already finished -- it returns the final state untouched.
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": "cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id to cancel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | Yes | ||
| status | Yes | ||
| stderr | No | ||
| stdout | No | ||
| command | Yes | ||
| exit_code | No | ||
| duration_ms | No | ||
| experiment_id | Yes | ||
| stderr_truncated | No | ||
| stdout_truncated | No |