Search
grep¶
Search for regex patterns across files in the project.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
pattern |
string | Yes | Regex pattern to search for |
path |
string | No | Directory or file to search in (defaults to working directory) |
include |
string | No | File glob to filter results (e.g. *.rs, *.ts) |
Features¶
- Uses Rust regex syntax
- Returns matching lines with file paths and line numbers
- Caps results at 200 matches to keep responses manageable
- Skips binary files and common non-text extensions (
.png,.jpg,.exe,.dll, etc.)
Examples¶
Search for a function definition:
Search for TODO comments in a specific directory:
Search for import statements:
glob¶
Find files matching a glob pattern.
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
pattern |
string | Yes | Glob pattern to match |
path |
string | No | Directory to search in (defaults to working directory) |
Pattern Syntax¶
| Pattern | Meaning |
|---|---|
* |
Match any characters (except /) |
** |
Match any directories recursively |
? |
Match any single character |
[abc] |
Match any character in the set |
[a-z] |
Match any character in the range |
Examples¶
Find all Rust source files:
Find test files:
Find files in a specific directory:
Find configuration files: