gograph_usages
Find all references and semantic usages of a Go symbol across the codebase. Locate files and lines where a function, struct, or variable is called or used.
Instructions
Find all references and semantic usages of a specific function, struct, or variable across the codebase. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when renaming symbols, checking references, or identifying dead code usages. Do NOT use for AST metadata only (use gograph_node instead). COMPLETENESS: Requires 'symbol' parameter. Returns files and exact line locations containing references to the target symbol. Example symbol: 'BuildGraph'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type name to search for (e.g., 'AuthService', 'Repository') |