gograph_fields
Extract all fields, types, and struct tags from a specific Go struct to inspect its layout, verify mappings, or generate serialization logic.
Instructions
Extract all fields, types, and struct tags declared inside a specific Go 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 inspecting struct definitions, verifying struct layouts, mapping JSON/database tags, or generating serialization logic. Do NOT use if you are looking for struct methods (use gograph_node or gograph_source instead). COMPLETENESS: Requires 'struct' parameter. Returns field names, Go types, and exact struct tag string metadata, providing full visibility into struct fields without manual code viewing. Example struct: 'Graph'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| struct | Yes | The exact name of the target struct to inspect fields for (e.g., 'Config', 'User') |