flutter_diagnose
Align Dart exceptions with native Android logcat traces to diagnose Flutter failures. Specify package, limit, and device serial to get time-ordered logs.
Instructions
Correlate Dart-side errors with the native Android log around them.
A Flutter failure usually leaves two unrelated-looking traces: a Dart exception and, for anything crossing a platform channel, a Java/Kotlin one in logcat. This pulls both and puts them next to each other in time order.
Args: package: app to restrict native logs to, e.g. com.example.app. limit: how many Dart errors to report. 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": "flutter_diagnose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| serial | No | ||
| package | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |