flutter_run
Start a Flutter app and get a run ID to enable hot reload, hot restart, and log retrieval.
Instructions
Start a Flutter app. Returns a run_id for use with hot_reload, hot_restart, and logs tools.
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": {
"project_dir": "<project_dir>"
},
"name": "flutter_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Target device ID (e.g. 'chrome', 'macos', an emulator ID). Empty for default. | |
| is_debug | No | Run in debug mode (true) or release mode (false) | |
| extra_args | No | Additional flags to pass to flutter run (e.g. ['--flavor=dev', '--dart-define=KEY=VALUE']) | |
| dont_detach | No | If true, wait for the app to finish instead of returning immediately after start | |
| project_dir | Yes | Path to the Flutter project directory |