find_files
Locate files matching glob patterns to quickly verify existence or find specific files in a codebase.
Instructions
Find files matching a glob pattern using efficient directory tree traversal.
Use when:
- Looking for files by pattern (e.g., "*.py", "test_*.js", "src/**/*.ts")
- Searching by filename only (e.g., "README.md" finds all README files)
- Checking if specific files exist in the project
- Getting file lists for further analysis
Pattern matching:
- Supports both full path and filename-only matching
- Uses forward slashes consistently across all platforms
- Efficient directory tree traversal for better performance
Args:
pattern: Glob pattern to match files (e.g., "*.py", "test_*.js", "README.md")
Returns:
Dictionary with files list and status information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes |