search_code
Search the current project's indexed source code by case-insensitive substring. Returns up to 10 matching code excerpts with file paths and line ranges, noting commit context.
Instructions
Code lane: searches the indexed SOURCE CODE of the current project, not the memory - a case-insensitive substring search. Use lookup instead for facts stored in memory, or where_used for one symbol's callers. Read-only. Every answer names the commit the text was read at and whether the working copy has since moved on - open the real file before trusting a line number. States plainly when no code index is configured, rather than returning an empty result. Replies with up to 10 matching snippets as path:start-end plus text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most hits to return. Defaults to 10. | |
| query | Yes | Case-insensitive substring to find in the indexed source. |