Search Codebase
search_codebaseSearch workspace files for specific text patterns to locate code segments, returning file paths, line numbers, and matching content for debugging purposes.
Instructions
Fast text search across the workspace files. Uses ripgrep when available, falls back to a recursive file walk. Returns matching file paths, line numbers, and line content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The text pattern to search for. | |
| case_sensitive | No | Whether the search should be case-sensitive. | |
| max_results | No | Maximum number of results to return. | |
| path | No | Optional subdirectory to scope the search to (relative to workspace root). |