Skip to main content

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 the context 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

string
Symbol name to look up (e.g., “validateUser”, “AuthService”).Omit if using --uid for direct lookup.

Options

string
Target repository name. Omit if only one repository is indexed.
string
Direct symbol UID for zero-ambiguity lookup.Example: --uid "file:src/auth.ts:function:validateUser"
string
File path to disambiguate common symbol names.Example: --file src/auth/validator.ts
boolean
Include full symbol source code in results.Default: false

Usage 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

Use gitnexus 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
For interactive use in AI editors, the MCP tool is preferred.

Symbol Disambiguation

When multiple symbols share the same name (e.g., multiple Logger classes), use --file to disambiguate:
Or use --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: