find_all_usages
Locate all references, imports, definitions, and call-sites of a symbol in a codebase via AST traversal. Input a symbol name to get every exact usage position.
Instructions
Performs deterministic AST traversal to return every exact reference, import, definition, and call-site 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": {
"symbolName": "<symbolName>"
},
"name": "find_all_usages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entryFile | No | Optional entry file where the symbol is declared. | |
| symbolName | Yes | Exact name of the symbol to find. | |
| workspaceRoot | No | Optional workspace root directory. |