prockill
Terminate, suspend, or resume system processes by PID or port number. Supports tree kills, signal selection, zombie process handling, and dry-run previews for safe process management.
Instructions
Kills, suspends, or resumes a process by PID or port number. Supports tree kill (process + all children), signal selection (kill/term/hup/int/stop/cont). Use signal=stop to suspend and signal=cont to resume a process. On Linux, can detect and handle zombie processes by signaling their parent. Use dry_run=true to preview which processes would be affected. Safety: refuses to target PID 0/1 or the agent-tool process itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process ID to kill | |
| port | No | Kill process(es) using this port number | |
| signal | No | Signal to send: kill (default), term, hup, int, stop (suspend), cont (resume). Windows uses NtSuspendProcess/NtResumeProcess for stop/cont | |
| tree | No | Kill the process and all its child processes (tree kill). Default: false | |
| include_zombies | No | Linux only: send SIGCHLD to parent of zombie processes to trigger reaping. Default: false | |
| dry_run | No | Preview which processes would be killed without actually killing them. Default: false |