list_ports
Lists TCP/UDP sockets and owning processes so you can identify which application is using a port; elevated rights may be required to see other users' PIDs.
Instructions
List TCP/UDP sockets with owning process. May need elevated rights to see other users' PIDs.
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 |
|---|---|---|---|
| protocol | No | all | |
| listening_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |