Glob Tool - Find Files by Pattern
Searches for files matching glob patterns using fd, a fast file finder. Supports wildcards like *.ts, **/*.json, src/**/test.*, and complex patterns. Respects .gitignore by default. Returns matching file paths sorted by relevance, making it fast to locate specific files or file types in large codebases.
What It Does
Searches for files matching glob patterns using fd, a fast file finder. Supports wildcards like *.ts, **/*.json, src/**/test.*, and complex patterns. Respects .gitignore by default. Returns matching file paths sorted by relevance, making it fast to locate specific files or file types in large codebases.
Why It Matters
In a large project, finding the right file is half the battle. Glob lets the AI quickly locate all TypeScript files, find test files, discover configs, or identify files matching any naming convention - without manually searching through Finder or running terminal commands.
Example Prompts
Find all TypeScript test files in this project Show me every .env file anywhere in my home directory Find all package.json files in my projects folder List all Markdown files in this repository Example Output
Glob: **/*.test.ts Found 14 files: src/utils/__tests__/parser.test.ts src/utils/__tests__/format.test.ts src/components/__tests__/Button.test.ts ... 14 test files found across 4 directories.
Safety & Control
Glob is a read-only search operation that only returns file paths - it doesn't read file contents or modify anything. It requires approval before execution. Results are limited to directories you've allowed in Chapeta's safety settings.
vs Other AI Apps
No other Mac AI app has built-in file pattern searching. ChatGPT and Claude can suggest find commands, but they can't run them. Chapeta's Glob tool gives the AI the ability to quickly locate files by pattern - essential for understanding projects and finding the right files to work with.
Related Tools
File Edit
Makes targeted edits to existing files on your Mac. Unlike File Write which repl...
File OperationsFile Read
Reads the contents of any file on your Mac and makes it available to the AI mode...
File OperationsGrep
Searches the contents of files for text patterns using ripgrep, a high-performan...