diff
View the complete diff for a single file without truncation to review all changes in large files like lock files or generated code before staging.
Instructions
View complete diff for a single file without truncation.
This tool is designed for viewing the full diff of a single file, regardless of size. Unlike list_changes, this tool will NEVER truncate the output, making it suitable for reviewing large files like lock files or generated code.
Use this when you need to:
View the complete diff of a large file (e.g., uv.lock, package-lock.json)
Review all changes in a specific file before staging
Analyze files that would be truncated by list_changes
Args: path: File path to view diff for (required) unified: Context lines around changes (default: UNIFIED_LIST_DEFAULT)
Returns: JSON string with format: {path, binary, status, lines, size_bytes}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| unified | No |