Glob Tool - Find Files by Pattern
Finds indexed files and directories with FFF. Use kind=glob for wildcards like *.ts, **/*.json, and src/**/test.*; use file, directory, or mixed for ranked discovery. Respects ignore files by default and returns matching paths with relevance metadata when available.
What It Does
Finds indexed files and directories with FFF. Use kind=glob for wildcards like *.ts, **/*.json, and src/**/test.*; use file, directory, or mixed for ranked discovery. Respects ignore files by default and returns matching paths with relevance metadata when available.
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 Find every .env file in my projects folder 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 returns file and directory paths - it doesn't read file contents or modify anything. Approval depends on your selected tool approval mode. Use a specific project or folder path instead of a broad root.
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 indexed file contents using FFF. Finds matching lines across multiple f...