Browse documentation

get_symbol_at_position

[symbols]

Returns the symbol at a 1-based line and column in a source file.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathstringYesWorkspace-relative or absolute file path.
linenumberYes1-based line number.
columnnumberYes1-based column number.

Examples

Replace sample paths and symbol keys with values from your workspace.

Resolve the symbol 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_at_position",
    "arguments": {
      "filePath": "src/app.ts",
      "line": 12,
      "column": 18
    }
  }
}

Response Notes

Returns the symbol key and declaration metadata at the requested position.