grep
tool-definition · v1.0.0
Pattern search across files. Returns matching lines with file:line locations.
Tool signature
function grep(pattern: string, path: string, case_insensitive: boolean?, max_matches: number?) → array Search for a regex pattern across files.
Parameters
pattern(string, required) — Regex to matchpath(string, required) — Root path or filecase_insensitive(boolean) — Ignore casemax_matches(number) — Cap on returned matches
Side effects
fs-read