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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_process"
}
}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 |