Shell cancel
shell_cancelTerminate a running shell command and its child processes when it hangs or its result is no longer needed, using the run ID and kill key from the original run.
Instructions
Kill a running command and its child processes. Needs run_id and kill_key from shell_run. Use when: a command hangs or its result is no longer needed. Avoid when: the run already finished (shell_status). Output: accepted, cleanup_complete.
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>",
"kill_key": "<kill_key>"
},
"name": "shell_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Run id from shell_run. | |
| kill_key | Yes | Kill key from shell_run; proves this caller started the run. |