gograph_embeds
Discover all parent structs that compositionally embed a given struct in Go codebases. Use to analyze nesting and trace shared type usage.
Instructions
Identify and list all parent structures that compositionally embed the specified target struct. 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 analyzing struct nesting, identifying compositions, or tracing where shared types are embedded. Do NOT use if you are looking for interfaces implemented (use gograph_implementers instead). COMPLETENESS: Requires 'struct' parameter. Returns a detailed array of embedding parent structs and their file definitions. Example struct: 'Symbol'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| struct | Yes | The exact name of the target struct to inspect embedding relationships for (e.g., 'Symbol', 'PackageNode') |