text_merge
Three-way merge (diff3) — Three-way line merge like git merge-file: base= (common ancestor), ours= and theirs= (a=/b= also accepted). Non-overlapping changes from both sides are combined; identical changes count once; overlapping different changes become conflicts with git-style markers (style=merge, diff3 with the base section, or zdiff3 which moves shared lines out of the conflict; ours_label/theirs_label/base_label). favor=ours|theirs|union resolves conflicts automatically. ignore_whitespace=true compares lines ignoring spacing. Returns merged text, clean flag, conflict count, per-conflict details with 1-based line ranges and the three versions, and stats on where changes came from. CRLF and trailing newline preserved. Max 300,000 characters and 20,000 lines per input. Price: $0.002 USDC (Base, via x402).
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": {
"base": "<base>",
"ours": "<ours>",
"theirs": "<theirs>"
},
"name": "text_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | alpha beta gamma | |
| ours | Yes | ALPHA beta gamma | |
| theirs | Yes | alpha beta GAMMA |