List Listening Ports & Network Connections
services_list_portsLists currently open listening network ports and the processes using them via lsof, with filters by port, process name, user, or PID. Use it to inspect which services are listening on a local machine.
Instructions
查看电脑当前开放监听的网络端口与占用进程(基于 lsof)。
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": "services_list_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最大返回条目数 | |
| filter | No | 按端口号、进程名、用户名或 PID 过滤 | |
| listeningOnly | No | 是否仅显示 LISTEN 状态的监听端口 |