diff
Compare two files and generate a unified diff. Supports encoding auto-detection and 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 | No | Absolute path to the first file | |
| file_b | No | Absolute path to the second file | |
| path_a | No | Alias for file_a | |
| path_b | No | Alias for file_b | |
| context_lines | No | Number of context lines around changes (default 3) |