[references]
Resolves the canonical definition for the symbol at a source position.
Safe edits depend on real symbol relationships, not text matches in comments, strings, or similarly named modules.
The model can see actual declarations, references, implementations, and conservative cleanup candidates before editing.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Workspace-relative or absolute file path. |
| line | number | Yes | 1-based line number. |
| column | number | Yes | 1-based column number. |
Find the canonical definition under a cursor
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_symbol_definition",
"arguments": {
"filePath": "src/app.ts",
"line": 12,
"column": 18
}
}
}Returns definition file, span, and symbol metadata.