logcat
Reads an allowed dev app's device logs, including crashed-process lines, returning only new lines since the previous call by default.
Instructions
Read the log of an allowed dev app (including lines of crashed earlier processes). By default returns only lines that are new since the previous call with the same filters.
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": {
"package": "<package>"
},
"name": "logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Case-insensitive regex applied to each line | |
| level | No | Minimum priority: V D I W E F | |
| serial | No | adb serial; optional when exactly one device is connected | |
| package | Yes | ||
| max_lines | No | ||
| since_last | No |