Read Logcat
android_logcatReads recent Android device logs and filters them by text or buffer to debug apps and capture crash reports.
Instructions
Read recent device logs. Useful for debugging apps (Flutter, React Native, native). The 'crash' buffer contains crash reports.
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": "android_logcat"
}
}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' |