read_logs
Retrieve Android logcat output filtered by app package, tag, severity, buffer, or message substring to diagnose Flutter app issues from connected devices.
Instructions
Read recent logcat output, filtered.
Args: package: only show logs from this app's process (e.g. com.example.app). tag: regex matched against the log tag. min_level: one of V, D, I, W, E, F. Defaults to I. contains: case-insensitive substring that must appear in tag or message. limit: max lines returned (hard-capped by FLUTTER_BRIDGE_MAX_LINES). buffer: main, system, crash, events, radio, or all. serial: device serial when several are attached.
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": "read_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| limit | No | ||
| buffer | No | main | |
| serial | No | ||
| package | No | ||
| contains | No | ||
| min_level | No | I |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |