repo_find_symbol
Resolve a symbol or file name to its node_id for use in neighbour, read, path, or blast-radius queries. Returns all candidates when a name is ambiguous.
Instructions
Look up a symbol or file's node_id by name, for feeding into repo_neighbours, repo_read, repo_path_between or repo_blast_radius. Read-only, deterministic, zero side effects, secret files (.env) excluded. Matches an exact name first, then case-insensitively, then the last segment of a qualname; an ambiguous name returns every candidate with its path so you disambiguate rather than the server guessing. When to use: you already know a name (from a traceback, a grep, a review comment) and want its node_id with no repo_search round trip. When NOT to use: do not use for open-ended text search (use repo_search) or for repo layout (use repo_map). Output: JSON array of {node_id, name, qualname, kind, path, start_line, end_line, lang}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Optional exact node kind filter (e.g. 'function', 'class', 'method'). | |
| name | Yes | Symbol or file name to look up (e.g. 'validate_token'). | |
| limit | No | Maximum candidates returned (default 20, min 1, max 50). | |
| path_prefix | No | Optional path prefix filter, e.g. 'pkg/'. |