App logs
app_logsRead an installed app's own log lines (Android logcat, only that app's processes, crash reports included), how its processes last ended (crash, crash_native, anr, low_memory, user_requested for a force stop, …) and its newest ANR trace (the main thread's stack). Use it when an app closed by itself, hangs (e.g. stuck on its splash screen) or shows an error, and after a server action the screen says worked (apps often update the screen before the server answers); .NET (MAUI) Console output is info level, tag DOTNET. Returns one line per log entry, "time pid level tag: message", newest last (the last 200 lines, up to 20 KB; by default warnings and errors, or info and up in the app's first 2 minutes or when it logged no warnings, as the first line says), then the last exits and the ANR trace if there is one.
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": {
"phone_id": "<phone_id>",
"package": "<package>"
},
"name": "app_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Lowest level shown: V verbose, D debug, I info, W warning (default; I in the app's first 2 minutes or when it logged no warnings), E error | |
| lines | No | How many of the newest lines, 1 to 1000 (default 200) | |
| since | No | Only entries from this time on, ISO 8601, e.g. the time of a line you already saw | |
| package | Yes | Package name, e.g. com.example.app (from list_apps) | |
| phone_id | Yes | Phone id, ph_… |