find_chunks_for_files
Locate chunks in a diff file that match a file pattern, such as '*.py', to focus analysis on specific changes without loading the entire diff.
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, 'test' for test files, 'src/' 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 |
|---|---|---|---|
| pattern | Yes | Glob pattern to match file paths (e.g., '*.py', '*test*', 'src/*') | |
| absolute_file_path | Yes | Absolute path to the diff file |