flutter_build
Build a Flutter app for a specific platform like Android, iOS, web, or desktop. Set the target, debug/release mode, and pass additional flags to generate the build output.
Instructions
Build a Flutter app for a target platform (e.g. apk, ios, web, macos). Can take a long time.
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>",
"target": "<target>"
},
"name": "flutter_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Build in debug mode (true) or release mode (false) | |
| target | Yes | Build target (e.g. 'apk', 'ios', 'web', 'macos', 'windows', 'linux', 'ipa', 'appbundle') | |
| extra_args | No | Additional flags to pass to flutter build (e.g. ['--simulator', '--flavor=dev']) | |
| project_dir | Yes | Path to the Flutter project directory |