Stop a job
job_killTerminates a running shell job by force-killing its process tree, using taskkill on Windows or SIGTERM then SIGKILL elsewhere. Grace period is configurable.
Instructions
Windows uses taskkill /T /F on the parent chain. Other systems send SIGTERM to the process group, then SIGKILL after the grace period. A partial stop returns E_KILL_INCOMPLETE.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "job_kill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | job_id | |
| grace_ms | No | grace_ms |