gograph_source
Extract the exact Go source code body for any function, method, struct, or interface without loading large files. Specify the symbol name to obtain its definition with line numbers.
Instructions
Extract the exact Go source code body for a specific function, method, struct, or interface. 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 you need to read the implementation details of a specific symbol without loading large files. Do NOT use if you need call hierarchies (use gograph_callers/gograph_callees instead). COMPLETENESS: Requires 'symbol' parameter. Returns the exact block of source code defining the target symbol, complete with line numbers. Example symbol: 'BuildGraph'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The name of the symbol (e.g., 'ValidateToken' or 'AuthService') |