bazel_build
Compile and test software using Bazel build system. Execute build targets with custom flags and retrieve output, errors, and exit status.
Instructions
Run a Bazel build and return stdout, stderr, and exit code.
options are passed as extra bazel flags (e.g. --config=ci, -c opt).
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": {
"targets": "<targets>"
},
"name": "bazel_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | ||
| options | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |