get_diagnostics
List compiler errors and warnings across the solution, optionally including analyzer diagnostics for trusted solutions.
Instructions
List compiler errors and warnings across the solution, optionally including analyzer diagnostics. Analyzer diagnostics require the solution to be trusted (see 'trust_solution'). Returns an envelope with items, totalCount, truncated, limit, and a severity summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (default: 1000). Items are sorted severity-desc, then file, then line. | |
| project | No | Optional project name filter | |
| severity | No | Minimum severity: 'error' or 'warning' (default: warning) | |
| includeAnalyzers | No | Include analyzer diagnostics (default: false — requires trust_solution to be called first) |