adb_logcat
Retrieve recent Android logcat lines non-blocking, optionally filter by tag/priority, and clear the buffer after reading to debug device issues.
Instructions
Dump recent Android logcat lines (non-blocking).
Args: lines: number of most recent lines to return. filter_spec: optional logcat filter, e.g. "ActivityManager:I :S" or ":E". clear: clear the log buffer after reading.
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": "adb_logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| lines | No | ||
| device | No | ||
| filter_spec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||