kill_process
Terminate a process by PID with graceful SIGTERM, or force immediate SIGKILL. Automatically protects critical system processes from being killed.
Instructions
Terminates a process by PID. Sends SIGTERM (graceful) by default; SIGKILL if force=True. Refuses to kill critical system processes (PID 1, launchd, systemd, init, kernel_task, core Windows services). Always confirm with the user before calling.
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": {
"pid": "<pid>"
},
"name": "kill_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The PID of the process to terminate (positive integer). | |
| force | No | If true, send SIGKILL (immediate). Default false (SIGTERM, graceful). |