Diff Lines
diff_linesCompute a line-level diff between two texts (keyless, offline). Returns the change list (equal/add/remove), an added/removed/unchanged summary, and a unified-diff-style string with +/- prefixes.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"a": "line 1\nline 2\nline 3",
"b": "line 1\nline 2 modified\nline 3"
},
"name": "diff_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The original ("before") text. | |
| b | Yes | The new ("after") text. | |
| context | No | If true, include unchanged lines in the unified output (default true). |