gograph_deps
Render the import dependency tree of a Go package, revealing direct and transitive imports for layer separation audits and dependency chain analysis.
Instructions
Render the package import dependency tree for a target Go 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 interactions, auditing layer separation, or analyzing transitive import paths. Do NOT use for tracing raw usages of a symbol (use gograph_usages instead). COMPLETENESS: Requires 'package' parameter. Returns a structured package list showing direct or full transitive dependency chains. Example package: 'internal/search'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | The target package path or name to inspect (e.g., 'internal/search', 'internal/cli') | |
| transitive | No | If true, return the full transitive import closure via Breadth-First Search (BFS) |