Logcat
android_logcatRead Android device logs to debug React Native and Expo apps, filtering to console and crash entries by default and optionally clearing the buffer for fresh output.
Instructions
Recent logcat lines. By default only ReactNativeJS (console.*), ReactNative and crash tags; all: true lifts the filter. clearAfter: true empties the buffer so the next call shows only new lines.
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 |
|---|---|---|---|
| all | No | ||
| serial | No | adb serial (from android_devices). Default: the only online device. | |
| contains | No | Case-insensitive substring filter | |
| maxLines | No | Default 200 | |
| clearAfter | No |