find_usages
Find every occurrence of a variable, function, or type in a TypeScript/JavaScript file. Identify all usages of an identifier to trace dependencies or refactor safely.
Instructions
Finds all occurrences of a specific identifier (variable, function, type) within a file
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>",
"identifier": "<identifier>"
},
"name": "find_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the TS/JS file | |
| identifier | Yes | The name of the identifier to search for |