lsp_fix_diagnostic_candidates
Retrieve LSP-based fix candidates for a diagnostic, including code actions, hover, definition, and signature help. Avoids AST context.
Instructions
Return LSP-based fix candidates for a diagnostic. Composes code actions, hover, definition, and signature help. Does NOT use AST context.
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>"
},
"name": "lsp_fix_diagnostic_candidates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Range to find intersecting diagnostic. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| includeHover | No | Include hover information. | |
| diagnosticCode | No | Diagnostic code to match. | |
| diagnosticIndex | No | 0-based index of diagnostic in the file. | |
| includeDefinition | No | Include definition locations. | |
| includeCodeActions | No | Include LSP code actions. | |
| includeSignatureHelp | No | Include signature help. |