Search for a literal text pattern in files.
grep_raw(
self,
pattern: str,
path: str | None = None,
glob: str | None = None
) -> list[GrepMatch] | str| Name | Type | Description |
|---|---|---|
pattern* | str | Literal string to search for (NOT regex). Performs exact substring matching within file content. Example: "TODO" matches any line containing "TODO" |
path | str | None | Default: NoneOptional directory path to search in. If None, searches in current working directory. Example: "/workspace/src" |
glob | str | None | Default: NoneOptional glob pattern to filter which FILES to search. Filters by filename/path, not content. Supports standard glob wildcards:
|