emacs_ediff_regions
Compare two text regions and get a diff in unified, context, side-by-side, or summary format. Choose labels and context lines to highlight exactly what changed.
Instructions
Compare two text regions and return the diff
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": {
"text_a": "<text_a>",
"text_b": "<text_b>"
},
"name": "emacs_ediff_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format (default: unified) | |
| text_a | Yes | First text to compare | |
| text_b | Yes | Second text to compare | |
| label_a | No | Label for the first text (optional) | |
| label_b | No | Label for the second text (optional) | |
| context_lines | No | Number of context lines (default: 3) |