diff
Compare two files to identify differences with encoding detection and unified diff output. Shows changes between files with configurable context lines.
Instructions
Compares two files and outputs a unified diff. Encoding-aware: auto-detects file encoding before comparison. Max 50,000 lines per file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_a | Yes | Absolute path to the first file | |
| file_b | Yes | Absolute path to the second file | |
| context_lines | No | Number of context lines around changes (default 3) |