| Name | Type | Description |
|---|---|---|
pattern* | str | Literal string to search for (NOT regex). Performs exact substring matching within file content. Example: |
path | str | None | Default: NoneOptional directory path to search in. If Example: |
glob | str | None | Default: NoneOptional glob pattern to filter which FILES to search. Filters by filename/path, not content. Supports standard glob wildcards:
|
max_count | int | None | Default: None |
Search for a literal text pattern in files.
Optional total cap on the number of matches returned across all files.
None (the default) preserves existing backend behavior and
returns every match. When set to an int, at most that many
matches are returned; if more exist the search stops and the
result is flagged with GrepResult.truncated=True. Exactly
max_count matches with none dropped is reported complete
(truncated=False). Interpreted as a total cap, not a per-file
cap.