find_definition
Find where a symbol is defined in your codebase, retrieving its file path, line number, and surrounding context.
Instructions
šÆ Find the definition location of a symbol (function, class, variable, method).
šÆ PURPOSE: Locates where a symbol is originally defined, providing file path, line number, and context. š§ USAGE: Use after analyze_codebase when you need to understand where a specific symbol is implemented. ā” PERFORMANCE: Fast operation (sub-second) - leverages cached code graph for instant lookups. š WORKFLOW: analyze_codebase ā find_definition ā examine definition context ā find_references/find_callers for usage patterns. š” TIP: Works with partial names - 'MyClass' will find 'MyClass', 'MyClassImpl', etc. Use exact names for precision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol name to find definition for (supports partial matching) |