load_diff
Load a diff file with custom chunk sizes, context lines, and include/exclude patterns to navigate large diffs efficiently.
Instructions
Parse and load a diff file with custom chunking settings. Use this tool ONLY when you need non-default settings (custom chunk sizes, filtering patterns). Otherwise, use list_chunks, get_chunk, or find_chunks_for_files which auto-load with optimal defaults. CRITICAL: You must use an absolute directory path - relative paths will fail. The diff file will be too large for direct reading, so you MUST use diffchunk tools for navigation. When using tracking documents for analysis, remember to clean up tracking state before presenting final results. The response includes a files_excluded count showing how many files were removed by exclude_patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip_trivial | No | Skip whitespace-only changes | |
| context_lines | No | Number of context lines around each change (default: keep all from diff file) | |
| skip_generated | No | Skip generated files and build artifacts | |
| max_chunk_lines | No | Maximum lines per chunk | |
| exclude_patterns | No | Comma-separated glob patterns for files to exclude | |
| include_patterns | No | Comma-separated glob patterns for files to include | |
| absolute_file_path | Yes | Absolute path to the diff file to load |