read_adb_logcat
Read a bounded, read-only snapshot of Android logcat for a chosen buffer, optionally filtered by process ID, returning the newest lines for recent device-log inspection without streaming or clearing.
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.
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": "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) | main |
| serial | Yes | Device serial exactly as `adb devices` reports it | |
| analysis_project_id | No | Optional investigation to retain this tool result in. Does not prove target identity or causal relationships. |