query_symbols
[symbols]
Queries symbols with text, kind, project, and export filters.
Try it locally in the TGlider playground
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | No | Optional symbol text filter. |
| kind | string | No | Optional TypeScript symbol kind filter. |
| projectName | string | No | Optional loaded project name to scope the query. |
| exportedOnly | boolean | No | Return only exported symbols. Default: false |
| matchMode | string | No | Name match mode: 'exact', 'prefix', or 'contains'. Default: exact matches win when they exist, otherwise contains. |
| limit | number | No | Maximum number of matching symbols to return. Default: 100 |
Examples
Replace sample paths and symbol keys with values from your workspace.
Find exported interfaces
Arguments
{
"kind": "InterfaceDeclaration",
"exportedOnly": true
}Full MCP request
Full MCP 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, spans, and truncation/suppression reporting (totalMatches, truncated, appliedMatchMode, suppressedMatches, notes).