Diff two texts
diff_textsCompare two versions of a text line by line to review edits between drafts and revisions, returning a unified diff or a note when identical.
Instructions
Return a unified diff between two versions of a text, line by line, so edits between a draft and a revision can be reviewed precisely. Returns a note when the two inputs are identical.
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": "<before>",
"after": "<after>"
},
"name": "diff_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The revised text. | |
| before | Yes | The original text. | |
| context_lines | No | Unchanged lines of context around each change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |