android_logcat
Troubleshoot Android app problems by fetching recent logcat output scoped to a chosen package or device, with optional grep filtering.
Instructions
Read recent logcat, scoped to one app's process by default.
For crashes and ANRs prefer android_crashes, which also maps stack frames to source.
Args: package: Scope to this app's pid. Omit for all output. device: Device serial; defaults to the first physical device. lines: How many trailing lines to return. grep: Case-insensitive substring filter applied after retrieval. clear_first: Clear the buffer instead of reading (returns immediately).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| lines | No | ||
| device | No | ||
| package | No | ||
| clear_first | No |