find_definition
Locates the definition site of a named symbol (function, class, method, etc.) in code by querying a tree-sitter-indexed symbol table, returning file path, line range, kind, and language.
Instructions
Locate the definition site of a named symbol (function, class, method, type, struct, enum, interface, record). Use this INSTEAD of shelling out to grep when the user asks "where is X defined?" — returns SymbolDef[] with path, line range, kind, and language. Faster and more accurate than grepping for def X / class X / function X / etc., because it consults a tree-sitter-indexed symbol table built at reindex time, not the raw text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact identifier to locate. | |
| language | No | Optional language hint for same-name disambiguation. Mirrors the set indexed by the tree-sitter chunker (see EXT_TO_LANG in chunker_treesitter.py). | |
| max | No |