Skip to main content

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

ParameterTypeRequiredDescription
projectstringOptional project name filter
severitystringMinimum severity: 'error' or 'warning' (default: warning)
includeAnalyzersboolInclude analyzer diagnostics (default: false — requires trust_solution to be called first)
limitint?Maximum number of items to return (default: 1000). Items are sorted severity-desc, then file, then line.