get_symbol_definition
[references]
Resolves the canonical definition for the symbol at a source position.
Try it locally in the TGlider playground
Parameters
| 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. |
Examples
Replace sample paths and symbol keys with values from your workspace.
Find the canonical definition under a cursor
Arguments
{
"filePath": "src/app.ts",
"line": 12,
"column": 18
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_symbol_definition",
"arguments": {
"filePath": "src/app.ts",
"line": 12,
"column": 18
}
}
}Response Notes
Returns definition file, span, and symbol metadata.