find_unused_parameters

[references]

Finds conservative unused parameter candidates in a loaded TS/JS project or file.

Why this tool exists

Safe edits depend on real symbol relationships, not text matches in comments, strings, or similarly named modules.

How it helps the agent

The model can see actual declarations, references, implementations, and conservative cleanup candidates before editing.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
projectNamestringNoOptional loaded project name to scope the query.
filePathstringNoWorkspace-relative or absolute file path.
includeGeneratedbooleanNoInclude generated-looking files in the scan.
includeUnderscoreParametersbooleanNoInclude parameters whose names start with an underscore.
skipnumberNoNumber of matching results to skip.
takenumberNoMaximum number of matching results to return.

Examples

Find likely-unused parameters

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.

↑/↓ NavigateEnter OpenSpace Expand