Syntax
Description
Provides a 360-degree view of a code symbol: callers, callees, processes it participates in, and more. This is a direct CLI wrapper for thecontext MCP tool.
Use this to understand:
- Who calls this symbol
- What this symbol calls
- Which execution flows use this symbol
- Where this symbol is defined
- Related symbols in the same cluster
Arguments
Symbol name to look up (e.g., “validateUser”, “AuthService”).Omit if using
--uid for direct lookup.Options
Target repository name. Omit if only one repository is indexed.
Direct symbol UID for zero-ambiguity lookup.Example:
--uid "file:src/auth.ts:function:validateUser"File path to disambiguate common symbol names.Example:
--file src/auth/validator.tsInclude full symbol source code in results.Default:
falseUsage Examples
Look up symbol by name
Disambiguate with file path
Direct UID lookup
Include source code
Specific repository
Output Format
Results are returned as JSON on stderr:When to Use
Usegitnexus context instead of the MCP tool when:
- Writing shell scripts
- Running in CI/CD pipelines
- Performing batch analysis
- You need machine-readable output
- Debugging from the terminal
Symbol Disambiguation
When multiple symbols share the same name (e.g., multipleLogger classes), use --file to disambiguate:
--uid for zero-ambiguity lookup:
Multi-Repo Support
If you have multiple repositories indexed, specify which one:Output Destination
All output goes to stderr instead of stdout because KuzuDB’s native module captures stdout at the OS level. To redirect to a file:Related Commands
gitnexus query— Search for execution flowsgitnexus impact— Blast radius analysisgitnexus cypher— Raw graph queries