gograph_embeds
Find all Go structs that embed a specified struct via anonymous fields, revealing how base types are extended and helping to assess impact before modifications.
Instructions
Find all Go structs that embed the named struct via anonymous field composition. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: When understanding how a base type is extended throughout the codebase, or before modifying a shared embedded struct to estimate blast radius. NOT TO USE: For interface implementations (use gograph_implementers); for named field type references in other structs (use gograph_usages). RETURNS: List of embedding parent struct names with package paths and file locations; empty when the struct is embedded nowhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| struct | Yes | The exact name of the target struct to inspect embedding relationships for (e.g., 'Symbol', 'PackageNode') |