Text conflict render

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

Render text and conflict parts as merge or diff3 conflict-marker text.

Use when you need to: text conflict render · render conflict marker blocks · emit merge or diff3 conflict text.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

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

Response:

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

How to call it

MCP

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

{
  "id": "text-conflict-render",
  "version": "1.0.0",
  "input": {
    "parts": [
      {
        "type": "text",
        "text": "keep\n"
      },
      {
        "type": "conflict",
        "ours": "aaa\n",
        "theirs": "bbb\n"
      }
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-conflict-render/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"parts":[{"type":"text","text":"keep\n"},{"type":"conflict","ours":"aaa\n","theirs":"bbb\n"}]}'

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

CLI

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

Get the client at /clients/cli/.