find_references
Locate all TypeScript/JavaScript symbol references in your codebase by specifying file, line, and symbol name to identify usage patterns and dependencies.
Instructions
Find all references to a TypeScript/JavaScript symbol across the codebase
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": {
"root": "<root>",
"filePath": "<filePath>",
"line": "<line>",
"symbolName": "<symbolName>"
},
"name": "find_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Root directory for resolving relative paths | |
| filePath | Yes | File path (relative to root) | |
| line | Yes | Line number (1-based) or string to match in the line | |
| symbolName | Yes | Name of the symbol |