kill_process
Terminate a process by PID or exact name. Optionally force kill for immediate termination; otherwise requests graceful shutdown. Stops unresponsive applications on headless desktops.
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 |