grep(
pattern: string,
path: string | null = null,
glob: string | null = null,
| Name | Type | Description |
|---|---|---|
pattern* | string | |
path | string | null | Default: null |
glob | string | null | Default: null |
maxCount | number | null | Default: null |
Search file contents for a literal text pattern.
Binary files (determined by MIME type) are skipped.
Literal text pattern to search for
Base path to search from (default: null)
Optional glob pattern to filter files (e.g., "*.py")
Optional cap on the total number of matches returned.
When the cap is hit, results are flagged truncated: true.