Build Ballerina project
mq_build_projectRun 'bal build' on a Ballerina project to confirm it compiles, returning success or compiler diagnostics. Verifies the Ballerina toolchain first and can use offline mode without modifying source files.
Instructions
Run bal build in a scaffolded project and report success or the compiler diagnostics. Verifies the Ballerina toolchain is installed first (bal version). Use offline=true to build against locally cached dependencies only. Does not modify source files.
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_path": "<project_path>"
},
"name": "mq_build_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offline | No | Pass --offline to bal build (use only locally cached dependencies). | |
| timeout_ms | No | Max time to wait for `bal build` to finish (default 300000 ms). | |
| project_path | Yes | Absolute or ~/%USERPROFILE%-relative path to an existing scaffolded project root (the folder containing Ballerina.toml). |