ssh_cmd_kill
Kill a running SSH command by handle ID, sending a configurable signal (default TERM) and automatically force-killing with SIGKILL if needed.
Instructions
Terminate a currently running command by its handle ID.
This tool is specifically for killing commands started with ssh_cmd_run, not background tasks launched with ssh_task_launch.
If force=True and the process doesn't exit after wait_seconds, it will be forcibly killed with SIGKILL (signal 9).
Returns: Dictionary containing kill operation result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle_id | Yes | Command handle ID to kill | |
| signal | No | Signal to send (15=TERM, 9=KILL) | |
| force | No | Force kill with SIGKILL if process doesn't exit | |
| wait_seconds | No | Seconds to wait before force kill |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||