build_project
Run build commands and return only critical diagnostics. Filters noisy compiler output to show unique errors first, with file, line, code, and repeat counts for faster debugging.
Instructions
Run a build command and return only the diagnostics that matter.
Prefer this over run_powershell for anything that compiles. run_powershell returns the raw log, which on a C++ project means hundreds of warnings and the same header error repeated once per translation unit. This parses that output and returns unique errors first, each with its file, line and code, with repeat counts instead of repetition.
Understands MSVC (C####, LNK####), clang and gcc, CMake configure errors, and ninja. If nothing parses but the build failed, the tail of the raw output is shown rather than a misleading "no errors".
Only build drivers may be run: cmake, ninja, msbuild, ctest, premake5, dotnet, cargo, clang, gcc, cl, python. Exactly one command per call, with the same restrictions as run_powershell -- no pipelines, redirection or separators outside quotes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout_seconds | No | ||
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |