kill_process
Terminate a running process by PID. Send SIGTERM for graceful shutdown or force immediate termination with SIGKILL.
Instructions
Terminate a running process by PID.
By default sends SIGTERM (graceful shutdown). Set force=True to immediately kill the process (SIGKILL on Linux, TerminateProcess on Windows).
Returns confirmation or error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | PID of the process to terminate. | |
| force | No | If True, use SIGKILL/TerminateProcess. Default False (graceful SIGTERM). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |