gograph_identity
Resolve a Go symbol to its location-independent identity and current source location. Ambiguous names return all candidates.
Instructions
Resolve an exact Go symbol spelling or canonical stable ID to location-independent symbol identity plus current source location. Canonical IDs are module import path + receiver/name and survive line shifts and file moves within the same package; package/module moves, receiver changes, and renames change the ID. Ambiguous short names return every candidate and never select one silently. An optional exact package qualifier disambiguates the uncommon in-package versus external foo_test ID collision. The MCP server refreshes the graph first. Read-only; no side effects. WHEN TO USE: Before persisting cross-document references or to re-resolve an existing stable ID. RETURNS: gograph.identity.v1 JSON with status exact, ambiguous, or not_found and deterministic matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Exact symbol name, package/receiver-qualified spelling, or canonical stable ID | |
| package | No | Optional exact Go package name used to disambiguate matching symbols |