explainDiagnostic
Inspect diagnostic details with surrounding code context, jump to definition, and see up to 5 callers at a specific file position. Resolve errors faster by understanding the code relationships.
Instructions
Bundle diagnostic details + code context (±10 lines) + go-to-definition + callers (up to 5) for a file/line/character position.
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>",
"line": "<line>",
"character": "<character>"
},
"name": "explainDiagnostic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) | |
| filePath | Yes | Workspace or absolute file path | |
| character | Yes | Character/column (1-based) |