List Listening TCP Ports
list_portsInspect active listening TCP ports and the processes that own them to identify port conflicts and diagnose stuck Windows services. Filter by a specific port or list all listening ports.
Instructions
Inspect active listening TCP ports and owning processes (PID, name, exe).
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": "list_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Optional specific TCP port number to filter. | |
| all_ports | No | If true, list all listening TCP ports instead of only common dev ports. |