roslyn:get_code_fixes
Retrieve available code fixes for a specific diagnostic by providing file path, diagnostic ID, and location. Returns fix titles and descriptions to resolve code issues.
Instructions
Get available code fixes for a specific diagnostic. Returns list of fix titles and descriptions. WORKFLOW: (1) get_diagnostics to find issues, (2) get_code_fixes to see options, (3) apply_code_fix to fix.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>",
"diagnosticId": "<diagnosticId>",
"line": "<line>",
"column": "<column>"
},
"name": "roslyn:get_code_fixes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Absolute path to source file | |
| diagnosticId | Yes | Diagnostic ID (e.g., CS0246) |