Network interfaces and general network settings
nas_network_infoRetrieve UGREEN NAS network details: list interfaces with link state, speed, MAC and IPv4/IPv6 settings, or return default gateway, DNS mode and proxy configuration.
Instructions
kind "interfaces" (default) lists network interfaces (data.ifaces[]) with link state, speed, MAC and IPv4/IPv6 settings; pass iface to see only one. To find the NAS address, take an interface whose connection is CONNECT_STATUS_CONNECTED and whose ipv4.ip_addr is not empty: decide by ip_addr, not by ipv4.status, which reads "enabled" even without an address. A speed of -1 or 0 means no link. An unknown interface name returns an empty list rather than an error. kind "general" returns the default gateway, DNS mode and servers, and proxy settings; the manual DNS list there only applies in manual mode and may differ from the per-interface DNS, so report both when asked about DNS. Network settings cannot be changed through this server.
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": "nas_network_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Interfaces, or gateway/DNS/proxy. | interfaces |
| iface | No | "interfaces" only: one interface name, for example eth0. |