search_code
Search repository source code for a text string or regex pattern, returning file paths, line numbers, and short previews.
Instructions
Search the repo source code for a text string or regex pattern. Returns file paths, line numbers, and short previews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex to search for. | |
| globs | No | File glob patterns to restrict search, e.g. ['*.js','*.ts']. | |
| regex | No | Treat query as a regex. Default false. |