Read logcat (condensed)
logcatCondense Android device logs for one app, collapse repeated entries, shorten stack traces, and surface crash/ANR root causes with app frames; optionally retrace R8 mapping.
Instructions
Condensed device log: filtered to one app (by PID), repeats collapsed (xN), stacks shortened, crashes/ANRs first with root cause and app frames. Optional mappingFile retraces R8.
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": "logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only this tag | |
| tags | No | Only these tags | |
| lines | No | Max lines shown (default 80) | |
| serial | No | Device serial; optional if one device | |
| sinceMs | No | Only entries from the last N ms | |
| maxLines | No | Alias of lines | |
| minLevel | No | Default I | |
| appPackage | No | Application id; strongly recommended | |
| clearAfter | No | Clear buffer after reading | |
| mappingFile | No | R8 mapping.txt |