find_chunks_for_files
Locate diff chunks for files matching a glob pattern to analyze specific file types or directories without processing entire large diffs sequentially.
Instructions
Locate chunks containing files that match a specific glob pattern. Auto-loads the diff file if not already loaded. Essential for targeted analysis when you need to focus on specific file types, directories, or naming patterns (e.g., '.py' for Python files, '' for source directory). Returns chunk numbers which you then examine using get_chunk. CRITICAL: You must use an absolute directory path - relative paths will fail. DO NOT attempt direct file reading. Use this for efficient navigation to relevant changes instead of processing entire large diffs sequentially.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| absolute_file_path | Yes | Absolute path to the diff file | |
| pattern | Yes | Glob pattern to match file paths (e.g., '*.py', '*test*', 'src/*') |