adb_crash_logs
Retrieve recent ANR traces and tombstone crash dumps from an Android device to diagnose app hangs and native crashes. Root access is required for /data/anr/ and /data/tombstones/.
Instructions
Read ANR (Application Not Responding) traces and tombstone crash dumps from the device. Requires root access for /data/anr/ and /data/tombstones/. Returns the most recent entries.
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": "adb_crash_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Type of crash data to retrieve (default: both) | both |
| device | No | Device serial | |
| maxEntries | No | Maximum entries to return per type (1-20, default 5) |