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.

Start using Glob in Chapeta