stop_process
Stop a process by PID or the one listening on a port: asks it to exit, then kills it after 5 seconds; use dry_run to preview.
Instructions
Stop the process listening on a port, or a process by PID: asks it to exit, then kills it after 5 s. Refuses system processes and the assistant itself. Ports published by Docker, Podman or WSL report the command to run instead. Use dry_run to see what would be stopped, and check_port first to tell the user what it is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | stop this process | |
| port | No | stop what listens on this port | |
| force | No | kill at once instead of asking it to exit first | |
| dry_run | No | only report what would be stopped |