get_build_diagnostics
Retrieve full build diagnostics and hidden warnings to investigate why a .NET app compiles but crashes or behaves unexpectedly. Reveals nullable, deprecation, and platform warnings.
Instructions
Get full build diagnostics including all warnings.
Build warnings are hidden by default in start_debug/restart_debug responses to reduce context noise. Call this tool when:
Build succeeds but the app crashes or behaves unexpectedly
Investigating assembly loading or compatibility issues
Checking nullable reference, deprecation, or platform warnings
Debugging "it compiles but doesn't work" situations
After a restore or build process completes with a failure, the result includes its stage (command), actual argv (commandLine), workingDirectory, exit code, and captured stdout/stderr even when no MSBuild diagnostics were parsed. Partial process output from timeout or cancellation is not retained. include_warnings filters structured diagnostics only; captured failure output is preserved unchanged. Command metadata is omitted when no process command was executed.
Args: include_warnings: Include warning details (default True, the point of this tool)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_build_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_warnings | No |