Skip to main content
Glama

load_diff

Parse and load large diff files with custom chunking settings for specific analysis needs, enabling efficient navigation of changes without loading entire files.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
absolute_file_pathYesAbsolute path to the diff file to load
max_chunk_linesNoMaximum lines per chunk
skip_trivialNoSkip whitespace-only changes
skip_generatedNoSkip generated files and build artifacts
include_patternsNoComma-separated glob patterns for files to include
exclude_patternsNoComma-separated glob patterns for files to exclude

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/peteretelej/diffchunk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server