port_scan
Identify listening TCP/UDP ports and associated processes to reveal exposed services. Filter by specific port or protocol for targeted checks.
Instructions
List all listening TCP/UDP ports with their associated processes. Can filter to a specific port number or protocol. Uses 'ss' (modern) with 'netstat' fallback. Useful for checking what services are exposed.
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": "port_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Check a specific port. Omit to list all listening ports. | |
| protocol | No | Protocol filter (default: all). | all |