[references]
Finds conservative unused symbol candidates in a loaded TS/JS project or file.
Safe edits depend on real symbol relationships, not text matches in comments, strings, or similarly named modules.
The model can see actual declarations, references, implementations, and conservative cleanup candidates before editing.
Try it locally in the TGlider playground
| 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. |
| take | number | No | Maximum number of matching results to return. |
Find likely-unused private symbols
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_unused_symbols",
"arguments": {
"projectName": "app"
}
}
}Returns cleanup candidates with symbol keys, spans, and conservative exclusion notes.