android_logcat
Capture Android device logs for debugging and monitoring app behavior. Retrieve logcat output from connected devices or emulators with filtering options to isolate specific log levels or messages.
Instructions
Capture Android logcat output from device or emulator
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "<serial>"
},
"name": "android_logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Device serial number | |
| filter | No | Log filter (e.g., *:E for errors only) | |
| lines | No | Number of log lines to capture | |
| clear | No | Clear logcat buffer before capturing |