find_files
Locate files in code repositories by matching glob patterns (e.g., '.py', 'test_.js') using an in-memory file index. Quickly retrieve file paths for analysis or verification without manual search.
Instructions
Find files matching a glob pattern using pre-built file index.
Use when:
- Looking for files by pattern (e.g., "*.py", "test_*.js")
- 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 standard glob patterns (*, ?, [])
- Fast lookup using in-memory file index
- Uses forward slashes consistently across all platforms
Args:
pattern: Glob pattern to match files (e.g., "*.py", "test_*.js", "README.md")
Returns:
List of file paths matching the pattern
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pattern | Yes |