Text three way merge

text-three-way-merge · version 1.0.0 · Text · free, no key needed

Three-way merge of text line records with merge or diff3 conflict markers.

Use when you need to: text three way merge · three-way merge of text · merge base ours theirs with conflict markers.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "base": "a\nb\nc\n",
  "ours": "a\nx\nc\n",
  "theirs": "a\nb\ny\n"
}

Response:

{
  "result": {
    "status": "clean",
    "text": "a\nx\ny\n"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "text-three-way-merge",
  "version": "1.0.0",
  "input": {
    "base": "a\nb\nc\n",
    "ours": "a\nx\nc\n",
    "theirs": "a\nb\ny\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-three-way-merge/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"base":"a\nb\nc\n","ours":"a\nx\nc\n","theirs":"a\nb\ny\n"}'

The machine-readable contract is at /v1/tools/text-three-way-merge/versions/1.0.0.

CLI

node cli.mjs run text-three-way-merge 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.