flutter_build_runner
Run code generation for Flutter projects to produce outputs for freezed, json_serializable, and drift. Delete conflicting outputs first to avoid stale generated files.
Instructions
Run build_runner to generate code (freezed, json_serializable, drift, etc.).
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_build_runner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Path to the Flutter project directory | |
| delete_conflicting | No | Delete conflicting outputs before building (usually what you want) |