device_log
Get everything a TP-Link router knows about one device by MAC—online state, IP, DHCP lease, router-log lines, blocked sites, parental-control and traffic status—plus record changes to a local history and query it.
Instructions
Everything the router knows about ONE device, plus a local per-MAC history. action=report (mac: online state, IP, DHCP lease/reservation, every router-log line mentioning its MAC or IP, its parental-control profile's sites today and blocked attempts, access-control / VPN / IoT status, traffic) | record (mac: append only what is NEW to /device-logs/-.jsonl; run it on a timer for a continuous log beyond what the router keeps) | history (mac, event?, limit) | list. Read-only on the router.
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": "device_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | No | ||
| event | No | ||
| limit | No | ||
| action | No | report | |
| reveal | No | Show secrets (passwords/keys) unmasked. | |
| router | No | Which router (see router_status 'routers'); default main. | main |