net
Run network diagnostics: resolve DNS records, check TCP port connectivity, list listening ports, show local interfaces, and ping hosts.
Instructions
Network probes: dns (A/AAAA/MX/TXT/CNAME/NS/PTR lookup), tcp_check (is host:port accepting connections, with timing), listening (which ports are open on this machine, and which pid owns them), interfaces (local addresses), ping.
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": {
"action": "<action>"
},
"name": "net"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Hostname or IP for dns, tcp_check and ping. | |
| port | No | tcp_check: port to connect to. listening: only report this port. | |
| type | No | dns: record type. Default A. | |
| count | No | ping: how many packets. Default 3. | |
| ports | No | tcp_check: several ports at once. | |
| action | Yes | Which probe to run. | |
| max_bytes | No | Byte cap on returned output. | |
| timeout_ms | No | Per-probe timeout. Default 5000. |