gograph_imports
Find all files and packages that import a given internal or third-party package. Trace package dependency relationships across a Go codebase.
Instructions
Find all files and packages that import a specific internal or third-party package. 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 mapping package dependency relationships, isolating features, or tracing where third-party libraries are used. Do NOT use if you need a package's own imports (use gograph_deps instead). COMPLETENESS: Requires 'package' parameter. Returns a complete array of file paths and importing packages referencing the target import path. Example package: 'golang.org/x/tools'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | The exact import path of the target package to trace imports for (e.g., 'github.com/redis/go-redis') |