search_by_kind

[symbols]

Searches symbols by TypeScript syntax kind.

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

Examples

List classes matching a name

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_by_kind",
    "arguments": {
      "kind": "ClassDeclaration",
      "query": "Service"
    }
  }
}

Response Notes

Returns matching declarations with stable symbol keys and truncation/suppression reporting (totalMatches, truncated, appliedMatchMode, suppressedMatches, notes).

↑/↓ NavigateEnter OpenSpace Expand