find_unused_parameters
[references]
Finds conservative unused parameter 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. |
| includeGenerated | boolean | No | Include generated-looking files in the scan. Default: false |
| includeUnderscoreParameters | boolean | No | Include parameters whose names start with an underscore. Default: false |
| skip | number | No | Number of matching results to skip. Default: 0 |
| take | number | No | Maximum number of matching results to return. |
Examples
Replace sample paths and symbol keys with values from your workspace.
Find likely-unused parameters
Arguments
{
"projectName": "app"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "find_unused_parameters",
"arguments": {
"projectName": "app"
}
}
}Response Notes
Returns parameter cleanup candidates with function context and spans.