search_symbols

[symbols]

Searches TypeScript and JavaScript symbols by text.

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
querystringNoSymbol text to search.
matchModestringNoName match mode: 'exact', 'prefix', or 'contains'. Default: exact matches win when they exist, otherwise contains.
limitnumberNoMaximum number of matching symbols to return.

Examples

Search for matching symbols

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_symbols",
    "arguments": {
      "query": "createClient"
    }
  }
}

Response Notes

Returns matching symbols with kind, file, location, symbol keys, and truncation/suppression reporting (totalMatches, truncated, appliedMatchMode, suppressedMatches, notes).

↑/↓ NavigateEnter OpenSpace Expand