compare_files
Compare two text files and display differences in text or JSON format. Specify file paths, encoding, and output format to analyze file content variations efficiently.
Instructions
Compare two text files and show differences.
Args:
file1: First file path
file2: Second file path
encoding: Text encoding (default: utf-8)
format: Output format ('text' or 'json')
ctx: MCP context
Returns:
Comparison results
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | utf-8 | |
file1 | Yes | ||
file2 | Yes | ||
format | No | text |
Input Schema (JSON Schema)
{
"properties": {
"encoding": {
"default": "utf-8",
"title": "Encoding",
"type": "string"
},
"file1": {
"title": "File1",
"type": "string"
},
"file2": {
"title": "File2",
"type": "string"
},
"format": {
"default": "text",
"title": "Format",
"type": "string"
}
},
"required": [
"file1",
"file2"
],
"title": "compare_filesArguments",
"type": "object"
}