kill_process
Terminate a running process by providing its PID or exact process name. Optionally force kill when a graceful terminate fails.
Instructions
Kill a process by PID, or all processes matching an exact name.
Provide either pid (preferred) or name. force=true kills hard; otherwise
a graceful terminate is requested first. This is destructive and may cause the
target application to lose unsaved data.
Args: params (KillProcessInput): pid or name, and force flag.
Returns: str: JSON {"ok": true, "killed": [{pid, name}], "count": N}, or an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |