logcat
Retrieve recent Android logcat lines, applying regex or package filters to isolate app-specific logs for debugging.
Instructions
Read recent logcat output, optionally filtered by a regex or restricted to one app's process
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": "logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of most recent lines | |
| filter | No | Case-insensitive regex applied to each line | |
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| package | No | Only show logs from this app's process |