get_diagnostics
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.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project | string | Optional project name filter | |
severity | string | Minimum severity: 'error' or 'warning' (default: warning) | |
includeAnalyzers | bool | Include analyzer diagnostics (default: false — requires trust_solution to be called first) | |
limit | int? | Maximum number of items to return (default: 1000). Items are sorted severity-desc, then file, then line. |