Diff two texts
text_diffLine-level diff of two strings, plus a unified patch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "text_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | The original text, compared line by line. | |
| b | No | The changed text to compare against a. | |
| to | No | Optional name for the changed text in the patch header. Default "b". | |
| from | No | Optional name for the original text in the patch header. Default "a". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |