evaluate_expression
Run Dart expressions inside a running Flutter app to inspect runtime values, verify state, and perform diagnostics without restarting the app.
Instructions
Evaluate a Dart expression in the context of the running Flutter app. Useful for inspecting runtime values, checking state, or running diagnostics.
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": {
"expression": "<expression>"
},
"name": "evaluate_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The Dart expression to evaluate (e.g., 'MediaQuery.of(context).size', 'MyClass.instance.someValue') |