Text conflict parse

text-conflict-parse · version 1.0.0 · Text · free, no key needed

Parse merge or diff3 conflict-marker text into ordered text and conflict parts.

Use when you need to: text conflict parse · parse conflict marker blocks · split merge conflict text into parts.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "keep\n<<<<<<< ours\naaa\n=======\nbbb\n>>>>>>> theirs\n"
}

Response:

{
  "result": {
    "parts": [
      {
        "type": "text",
        "text": "keep\n"
      },
      {
        "type": "conflict",
        "ours": "aaa\n",
        "theirs": "bbb\n"
      }
    ],
    "conflict_count": 1
  }
}

How to call it

MCP

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

{
  "id": "text-conflict-parse",
  "version": "1.0.0",
  "input": {
    "text": "keep\n<<<<<<< ours\naaa\n=======\nbbb\n>>>>>>> theirs\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-conflict-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"keep\n<<<<<<< ours\naaa\n=======\nbbb\n>>>>>>> theirs\n"}'

The machine-readable contract is at /v1/tools/text-conflict-parse/versions/1.0.0.

CLI

node cli.mjs run text-conflict-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.