Text unified diff

text-unified-diff · version 1.0.0 · Text · free, no key needed

Emit a one-file unified diff of two texts with comma counts and LF document breaks.

Use when you need to: text unified diff · emit unified diff · unified format text diff.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "left": "a\n",
  "right": "b\n"
}

Response:

{
  "result": {
    "unified": "--- a\n+++ b\n@@ -1,1 +1,1 @@\n-a\n+b\n",
    "identical": false
  }
}

How to call it

MCP

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

{
  "id": "text-unified-diff",
  "version": "1.0.0",
  "input": {
    "left": "a\n",
    "right": "b\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-unified-diff/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"left":"a\n","right":"b\n"}'

The machine-readable contract is at /v1/tools/text-unified-diff/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.