Read device logs
phone_logsRead Android logcat and filter by app package, minimum severity, or crashes only; clear the buffer first when needed.
Instructions
Read logcat. Filter to one app by package, by minimum level, or to crashes only. clear empties the log first.
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": "phone_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| level | No | Minimum level. | |
| lines | No | How many recent lines. Default 150. | |
| serial | No | Which device to use. Only needed when several are connected. | |
| crashes | No | Only the crash buffer (uncaught exceptions, native crashes). | |
| package | No |