build_project
Build, rebuild, or clean a Keil MDK project, stream live build progress, and return logs and errors for automated STM32 code fixes.
Instructions
Build a Keil project with UV4 -b (or -r rebuild / -c clean).
Args: project: path to .uvprojx (absolute or relative to default_project_dir) target: target name (default: first target in project) timeout_seconds: build timeout (default 120) stream_progress: tail the log for realtime progress (percent/phase) clean: run UV4 -c instead of -b rebuild: run UV4 -r (full rebuild) instead of -b Returns: {status: ok|error|canceled|not_found, returncode, build_log, errors[], summary, progress?}
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": "<project>"
},
"name": "build_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| target | No | ||
| project | Yes | ||
| rebuild | No | ||
| stream_progress | No | ||
| timeout_seconds | No |