[references]
Finds conservative unused parameter 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. |
| includeGenerated | boolean | No | Include generated-looking files in the scan. |
| includeUnderscoreParameters | boolean | No | Include parameters whose names start with an underscore. |
| skip | number | No | Number of matching results to skip. |
| take | number | No | Maximum number of matching results to return. |
Find likely-unused parameters
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_unused_parameters",
"arguments": {
"projectName": "app"
}
}
}Returns parameter cleanup candidates with function context and spans.