Browse documentation

search_by_kind

[symbols]

Searches symbols by TypeScript syntax kind.

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. Default: 100

Examples

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

List classes matching a name

Arguments
{
  "kind": "ClassDeclaration",
  "query": "Service"
}
Full MCP request
Full MCP 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).