compare_files
Compare two files to highlight differences using multiple formats like unified, side-by-side, inline, or context. Configure context lines, ignore whitespace, and enable word-level comparisons for precise analysis.
Instructions
Compare two files and show differences with multiple format options
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contextLines | No | Number of context lines (default: 3) | |
| file1 | Yes | First file path | |
| file2 | Yes | Second file path | |
| format | No | Diff format | |
| ignoreWhitespace | No | Ignore whitespace changes | |
| label1 | No | Label for first file | |
| label2 | No | Label for second file | |
| wordDiff | No | Show word-level differences |