⌨️Grep Tool
Also known as Grep, ripgrep, Search file contents
The tool that searches inside files for a word or pattern.
Think of it like
It is like going through each page to find one word.
Example
Lucy asks where an old function is still used. Claude searches for its name and gets back the six files that call it.
Why it matters
It finds the spots to change in a big project. It does not have to read each file.
Definition
Example code
bash
claude --allowedTools "Grep"Common mistake
Key takeaways
- 1Searches inside. Lines, not names.
- 2Three outputs. Files, lines, counts.
- 3Skips ignored files. Respects .gitignore.