find_unused_symbols
[references]
Finds conservative unused symbol candidates in a loaded TS/JS project or file.
Try it locally in the TGlider playground
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| projectName | string | No | Optional loaded project name to scope the query. |
| filePath | string | No | Workspace-relative or absolute file path. |
| skip | number | No | Number of matching results to skip. Default: 0 |
| take | number | No | Maximum number of matching results to return. |
| includeGenerated | boolean | No | Include generated files in the analysis. Default: false |
Examples
Replace sample paths and symbol keys with values from your workspace.
Find likely-unused private symbols
Arguments
{
"projectName": "app"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_unused_symbols",
"arguments": {
"projectName": "app"
}
}
}Response Notes
Returns cleanup candidates with symbol keys, spans, and conservative exclusion notes.