gograph_node
Fetch AST metadata for a Go symbol, package, or file: kind, file, line number, and signature. Requires 'gograph build .' first.
Instructions
Fetch AST metadata for a named symbol, package, or file: kind, file path, line number, full signature, doc comment, and struct fields if applicable. Requires .gograph/graph.json — run gograph build . first. Read-only; no side effects. WHEN TO USE: When you need structural metadata (kind, signature, line number) without the full source body — lighter than gograph_source for metadata-only lookups. NOT TO USE: For full source code (use gograph_source); for call relationships (use gograph_callers/gograph_callees). RETURNS: Node properties array with kind, file, line, and signature; empty when the name is not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The exact symbol, package path, or Go file name to inspect (e.g., 'Graph', 'internal/search', 'server.go') |