Read logcat
logcatRead recent Android device logs to debug apps and crashes. Filter by app package, priority, tag, or regex, and read the crash buffer for uncaught exceptions and ANRs.
Instructions
Read recent device logs. Filter by app package (uses its current PID), minimum priority, tag, or a regex. Use crashesOnly to get the crash buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only this log tag | |
| grep | No | JavaScript regex applied to each line | |
| clear | No | Clear the log buffer after reading | |
| lines | No | Number of most recent lines to read | |
| serial | No | Device serial from devices_list. Optional when exactly one device is online. | |
| package | No | Only logs from this app's running process | |
| crashesOnly | No | Read the crash buffer (uncaught exceptions, ANRs) | |
| minPriority | No | V |