Diff files
project_diff_filesCompare two workspace files to produce a git-style unified diff with lines added/removed and full hunk text, helping review edits before or after changes.
Instructions
Unified (git-style) diff between two workspace files. Reports lines_added/lines_removed and the full hunk text. Use when: comparing two versions of a file, or reviewing changes before/after an edit. Avoid when: the two files are in different languages or one is binary; large binaries are not supported. Speed: medium; LCS-based diff over the two full texts, bounded by max_lines. Output: diff_files: lines_added, lines_removed, unified_diff, truncated. Batch-safe: yes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_lines | No | ||
| context_lines | No | ||
| relative_path_a | Yes | Path inside the workspace (relative, or absolute inside the workspace) | |
| relative_path_b | Yes | Path inside the workspace (relative, or absolute inside the workspace) |