get_logcat
Retrieve recent Android system logs with configurable line limits and ADB-compatible filters to diagnose device issues.
Instructions
Dump a snapshot of recent system logs (logcat) with custom line limits and filter criteria.
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": "get_logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of recent lines to retrieve (e.g. 50, 100, 500) | |
| serial | No | Specific device serial number | |
| filterSpec | No | Filter specifications matching ADB format (e.g. '*:E' for errors only, 'ActivityManager:I *:S' for info-level ActivityManager logs and silencing others) |