| Name | Type | Description |
|---|---|---|
pattern* | str | Literal substring to search for. |
path | str | None | Default: NoneDirectory scope for the search (default: |
glob | str | None | Default: NoneOptional glob to pre-filter files, using the same contract as
|
max_count | int | None | Default: None |
Search file contents for a literal substring.
Optional total cap on the number of matches returned
across all files. None (the default) returns every match.
When set, scanning stops once the cap is exceeded and the
result is flagged truncated=True; exactly max_count
matches with none dropped is reported complete.