get_code_fixes
Retrieve code fixes for a specific diagnostic at a given file location, returning structured text edits for review and application.
Instructions
Get available code fixes for a specific diagnostic at a file location. Returns structured text edits that can be reviewed and applied. Returns an envelope with items sorted by title, totalCount, truncated, and limit (default 100).
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": {
"diagnosticId": "<diagnosticId>",
"filePath": "<filePath>",
"line": "<line>"
},
"name": "get_code_fixes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number where the diagnostic occurs | |
| limit | No | Maximum number of items to return (default: 100). Items are sorted by title. | |
| filePath | Yes | Full path to the source file | |
| diagnosticId | Yes | Diagnostic ID (e.g., 'CA1822', 'CS0168') |