diagnose_flutter_errors
Diagnose Flutter errors like RenderFlex overflows, setState during build, pubspec conflicts, CocoaPods errors, and Gradle mismatches using error messages, stack traces, code, or flutter doctor output.
Instructions
Diagnoses Flutter errors including RenderFlex overflows, setState during build, pubspec version conflicts, CocoaPods build errors, and Gradle namespace mismatches.
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": {
"errorMessage": "<errorMessage>"
},
"name": "diagnose_flutter_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stackTrace | No | Optional stack trace. | |
| codeSnippet | No | The offending Flutter widget / Dart code. | |
| errorMessage | Yes | The error message or crash log. | |
| flutterDoctorOutput | No | Optional flutter doctor output. |