diff_diff_text
Compare two text strings and output a unified diff, including statistics on added, removed, and unchanged lines, and a change flag.
Instructions
[diff] Compare two text strings and return a unified diff. Returns {unified: str, added_lines: int, removed_lines: int, unchanged_lines: int, has_changes: bool}.
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": "diff_diff_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_a | Yes | ||
| text_b | Yes | ||
| context | No | ||
| label_a | No | ||
| label_b | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |