[symbols]
Returns the symbol at a 1-based line and column in a source file.
JS/TS names repeat across packages, files, exports, type/value spaces, and generated declarations.
Symbol tools turn fuzzy names and cursor positions into stable identities for references, callers, exports, and refactors.
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. |
Resolve the symbol under a cursor
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_symbol_at_position",
"arguments": {
"filePath": "src/app.ts",
"line": 12,
"column": 18
}
}
}Returns the symbol key and declaration metadata at the requested position.