query_symbols

[symbols]

Queries symbols with text, kind, project, and export filters.

Why this tool exists

JS/TS names repeat across packages, files, exports, type/value spaces, and generated declarations.

How it helps the agent

Symbol tools turn fuzzy names and cursor positions into stable identities for references, callers, exports, and refactors.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
querystringNoOptional symbol text filter.
kindstringNoOptional TypeScript symbol kind filter.
projectNamestringNoOptional loaded project name to scope the query.
exportedOnlybooleanNoReturn only exported symbols.
limitnumberNoMaximum number of matching symbols to return.

Examples

Find exported interfaces

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "query_symbols",
    "arguments": {
      "kind": "InterfaceDeclaration",
      "exportedOnly": true
    }
  }
}

Response Notes

Returns filtered symbols with stable keys and spans.

↑/↓ NavigateEnter OpenSpace Expand