code_search
Search codebase content rapidly using ripgrep with regex patterns, file type filters, and context lines for precise code analysis.
Instructions
Search codebase content using ripgrep. Much faster and smarter than fs_search — supports regex, file type filters, context lines, and higher result limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| glob | No | Glob pattern to filter files. E.g. "*.test.ts", "src/**/*.tsx" | |
| path | No | Directory to search in | /workspace |
| word | No | Match whole words only | |
| context | No | Lines of context before and after each match (0-5) | |
| pattern | Yes | Search pattern (regex supported). | |
| file_type | No | File type filter: ts, tsx, js, py, rust, go, css, html, json, yaml, etc. | |
| files_only | No | Only list matching file paths, not content | |
| ignore_case | No | Case-insensitive search | |
| max_results | No | Max result lines (default 50, max 200) |