Get Process Ports
get_process_portsFind all TCP and UDP ports currently used by a process. Provide a PID to see its open network ports and diagnose conflicts or service activity.
Instructions
获取某个进程正在使用的全部 TCP / UDP 端口。
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": {
"pid": "<pid>"
},
"name": "get_process_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |