diff_text
Compare two text strings and display their differences in unified, context, or ndiff format.
Instructions
Compare two text strings and show differences.
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": {
"text1": "<text1>",
"text2": "<text2>"
},
"name": "diff_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text1 | Yes | First text string | |
| text2 | Yes | Second text string | |
| format | No | Output format - "unified", "context", or "ndiff" (default: "unified") | unified |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |