gograph_query
Search Go codebase for symbols, packages, or files matching a keyword. Use for initial exploration when you have a feature name but don't know where it is defined.
Instructions
Search the graph index for symbols, packages, files, and import edges that match a keyword substring. Requires .gograph/graph.json — run gograph build . first if stale (check with gograph_stale). Read-only; no side effects. WHEN TO USE: During initial exploration when you have a keyword or feature name but don't know which files or packages contain it. NOT TO USE: When you already know the exact symbol name (use gograph_source or gograph_node instead); for package dependency trees (use gograph_deps). RETURNS: List of matching symbols, files, and imports with their kind, package path, and line number; empty when no matches found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | The keyword search term to locate in symbols, files, and imports (e.g., 'AuthService', 'token', 'router') |