Read Adb Logcat
read_adb_logcatRead a bounded dump of Android device logcat for a selected buffer, optionally filtered by process ID, returning only the newest lines for recent log inspection.
Instructions
Read a bounded dump of the device log (logcat -d -t) for one buffer, optionally restricted to a process id. No streaming, no clearing; the newest lines are kept when the count cap trims. Read-only.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"count": 200,
"buffer": "main",
"serial": "emulator-5554"
},
"name": "read_adb_logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Restrict to one process id (logcat --pid) | |
| count | No | Number of most recent lines to read (logcat -d -t) | |
| buffer | No | Log buffer to read (logcat -b) | |
| serial | Yes | Device serial exactly as `adb devices` reports it |