compare_text_files
Compare two existing text files as a read-only diff to identify differences without editing either file. Adjust context lines to control how much surrounding text appears.
Instructions
Compare two Owner-scoped existing files without editing either.
Use to compare two existing Owner-scoped text files as a read-only diff. before_path and after_path are files, not patches; context_lines adjusts displayed context only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"before_path": "<before_path>",
"after_path": "<after_path>"
},
"name": "compare_text_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after_path | Yes | Second existing file to show on the right/new side of a read-only comparison. | |
| before_path | Yes | First existing file to show on the left/old side of a read-only comparison. | |
| context_lines | No | Read-only diff context lines, 0 to 8; default 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||