search
Find code by keyword or identifier in an indexed project, returning file paths, line ranges, and highlighted snippets so you can locate implementations and callers without opening whole files.
Instructions
Search one project's index by keyword or identifier. Returns file paths, line ranges and short highlighted snippets, so use this before opening whole files. Good for 'where is X', 'who calls Y', 'how is Z implemented'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results (1-25). Default 8. | |
| query | Yes | Words or identifiers to find. | |
| project | No | Project root. Defaults to the most recently indexed project. | |
| path_prefix | No | Only search files under this relative path, e.g. 'src/api'. |