android_logs
Fetches capped Android logcat output for a package, allowing level, time-window, and line-limit filters, and falls back to post-crash logs if the app has exited.
Instructions
Fetch capped logcat output for a package (with post-crash fallback if exited).
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": "android_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | W | |
| package | Yes | ||
| max_lines | No | ||
| since_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| pid | No | ||
| error | No | ||
| lines | No | ||
| package | No | ||
| truncated | No | ||
| process_running | No |