check_port
Check whether ports are free and identify the process holding any in-use port, with name, PID, user, command, and container. Use first when a server reports address already in use or EADDRINUSE.
Instructions
Check whether ports are free. For each port in use, says which process holds it: name, PID, user, command line, who started it, and the container if Docker or Podman publishes it. Use it first when a server fails with "address already in use" or EADDRINUSE.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ports": "<ports>"
},
"name": "check_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ports | Yes | the ports to check, e.g. [3000] | |
| proto | No | tcp (default) or udp |