roslyn:get_diagnostics
Catch compiler errors, warnings, and info messages in your C# code before committing. Filter by file, project, or severity to target specific issues.
Instructions
Get compiler errors, warnings, and info messages for a file or entire project. Returns: list of diagnostics with id, message, severity, and location. Use before committing to catch issues.
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": "roslyn:get_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Optional: path to specific file, omit for all files | |
| severity | No | Optional: filter by severity (Error, Warning, Info) | |
| projectPath | No | Optional: path to specific project | |
| includeHidden | No | Include hidden diagnostics (default: false) |