file_compare
Compare two files to identify differences and output detailed comparisons in text or JSON format. Analyze file variations for content changes and statistics.
Instructions
文件差异比较:比较两个文件的差异,以文本或JSON格式输出差异统计和详细对比。
示例:比较两个文件 { "file1": "a.js", "file2": "b.js", "output_format": "json" }
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file1 | Yes | 第一个比较文件路径 | |
| file2 | Yes | 第二个比较文件路径 | |
| output_format | No | 输出格式:text(纯文本)、json(结构化JSON)、both(两者兼有) |