NetsCLI

v0.3.4
io.github.fstubner/netscli Checked 1 hour ago Published 1 month ago

Network scanner for AI agents: discover hosts, scan TCP and UDP ports, query DNS and mDNS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

discover_network

Discover live hosts on a network subnet

ParameterTypeDescription
maxConcurrentnumber
resolveHostnamesboolean
subnetstringIPv4 CIDR, at most a /16. Defaults to the local subnet.
timeoutnumberMilliseconds, applied to every step. Omit for the defaults: ping 1000, scan 500, DNS 1500.

scan_ports

Scan TCP ports on a host, or UDP ports with udp: true. UDP without ports probes DNS, NTP, NetBIOS, SSDP and mDNS; a UDP port that neither replies nor refuses is open|filtered. Returns only open, open|filtered and errored ports unless include_closed is true, so an empty list means every port scanned was closed or filtered.

ParameterTypeDescription
host *string
include_closedbooleanAlso return closed and filtered ports, one entry each.
maxConcurrentnumber
portsarray
timeoutnumber
udpboolean

ping_host

Ping a host (ICMP with TCP-connect fallback). Returns a PingSummary with aggregate loss and min/avg/max RTT when count > 1.

ParameterTypeDescription
host *string
countnumber
timeoutnumber

dns_lookup

DNS lookup (A, AAAA, CNAME, MX, NS, TXT, SRV, PTR, SOA, CAA, or ALL/ANY for every record type)

ParameterTypeDescription
host *string
typestringRecord type. Omit, or pass ALL, for every type.

get_arp_table

Get ARP/neighbor table with vendor information

inspect_host

Inspect a host: ping, port scan, reverse DNS, MAC vendor on the local segment, and an OS hint (family, detail and the evidence behind it, from SMB, SSH/HTTP banners, open ports, MAC vendor and ping TTL). The hint is a guess, not a fingerprint. ports lists only open, open|filtered and errored ports unless include_closed is true.

ParameterTypeDescription
host *string
include_closedbooleanAlso list closed and filtered ports in ports, one entry each.
maxConcurrentnumber
portsarray
timeoutnumberMilliseconds, applied to every step. Omit for the defaults: ping 1000, scan 500, DNS 1500.

sweep_network

Sweep a network (discover hosts then scan ports)

ParameterTypeDescription
maxConcurrentnumber
portsarray
resolveHostnamesboolean
subnetstringIPv4 CIDR, at most a /16. Defaults to the local subnet.
timeoutnumberMilliseconds, applied to every step. Omit for the defaults: ping 1000, scan 500, DNS 1500.

list_network_interfaces

List network interfaces with details

discover_mdns

Discover devices on the local network via mDNS/DNS-SD (Bonjour). Returns services with their hostnames, resolved IPs, ports, and TXT properties. Much friendlier than IP-based discovery for named devices like printers, Chromecasts, or Homebridge accessories.

ParameterTypeDescription
service_typesarrayExplicit service types to browse (e.g. ["_http._tcp.local.", "_airplay._tcp.local."]). Omit to use a curated default set.
timeout_msnumberHow long to browse for responses. 3000-5000ms is typical; many devices re-announce on a multi-second cadence.