build_project
Configure and compile CMake/Ninja or arm-none-eabi firmware projects, returning compiler output, ELF SHA256, size, and warning/error counts for verification.
Instructions
Configure + build a CMake/Ninja/arm-none-eabi project / 编译工程并产出证据.
Uses CMakePresets.json when the preset exists, else explicit Ninja configure. Returns raw compiler output, ELF SHA256, size output, warning/error counts. Never touches hardware and 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": "build_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| preset | No | Debug | |
| target | No | ||
| timeout_s | No | ||
| build_args | No | ||
| project_path | Yes | ||
| configure_args | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||