Read Logcat
android_logcatFetch recent Android device logs for debugging. Supports filtering by buffer type (main, system, crash) and text content.
Instructions
Read recent device logs. Useful for debugging apps (Flutter, React Native, native). The 'crash' buffer contains crash reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of recent lines to fetch. Defaults to 200. | |
| buffer | No | Log buffer to read. Defaults to 'main'. Use 'crash' for crash reports. | |
| device | No | Device id (serial or host:port). Optional -- when omitted, uses ANDROID_MCP_DEVICE env or auto-selects the connected device (physical devices preferred over emulators). | |
| filter | No | Only return lines containing this text (case-insensitive), e.g. a package name or 'flutter' |