dead_code
Find unreferenced functions, types, and variables in TypeScript/JavaScript code to expose dead code and simplify refactoring.
Instructions
Finds unreferenced unexported symbols (functions, types, variables) within a directory
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "dead_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory | |
| include_tests | No | Include test files (default: false) |