⌨️Glob Tool
Also known as Glob, **/*.js, File name pattern
The tool that finds files whose names match a pattern.
Think of it like
It is like asking for all the books with blue covers.
Example
Jack asks where the tests are. Claude searches for the pattern **/*.test.ts and gets a list of every test file in the project.
Why it matters
Finding the right files is the first step of almost any change.
Definition
Example code
bash
claude --allowedTools "Glob" "Grep"Common mistake
Key takeaways
- 1Names only. Not contents.
- 2Up to 100 files. Newest first.
- 3Off by default. On macOS and Linux.