get_agent_logs
Retrieve connection, disconnection, WiFi association, and DHCP event logs for a specific agent to diagnose availability, wireless connectivity, and DHCP issues.
Instructions
Get connection/disconnection event logs for a specific agent. Shows CONNECT, DISCONNECT events with timestamps. For wireless agents, also includes wpa_supplicant events (WiFi association/authentication state changes, SSID roaming, 4-way handshake) and DHCP events (lease acquire, renew, release, fail). Critical for diagnosing agent availability issues, WiFi connectivity problems, and DHCP issues.
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": {
"agent_id": "<agent_id>"
},
"name": "get_agent_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page offset | |
| agent_id | Yes | The numeric ID of the agent | |
| page_size | No | Results per page | |
| filter_types | No | Filter by log type: DISCONNECT, CONNECT, etc. (comma-separated) | |
| filter_ts_value1 | No | Timestamp filter value (ISO 8601 or Unix timestamp) | |
| filter_ts_value2 | No | Second timestamp value (required for <=> between operator) | |
| filter_ts_operator | No | Timestamp filter operator: >, <, >=, <=, <=>, = |