Get Logs
get_logsRetrieve recent Android logcat entries filtered by log level and tag. Returns structured JSON with timestamp, PID, TID, level, tag, and message for debugging or monitoring device events.
Instructions
Retrieve recent Android logcat entries from the device. You can filter by minimum log level (V=Verbose, D=Debug, I=Info, W=Warning, E=Error, F=Fatal) and/or by tag name. Returns structured JSON with timestamp, PID, TID, level, tag, and message for each entry.
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": {
"device_id": "<device_id>"
},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device serial ID | |
| lines | No | Number of recent log lines to retrieve | |
| level | No | Minimum log level: V(erbose), D(ebug), I(nfo), W(arning), E(rror), F(atal) | |
| filter | No | Filter by tag name (e.g. 'ActivityManager', 'System.err') |