Text lines difference

text-lines-difference · version 1.0.0 · Text · free, no key needed

Set difference a minus b using exact line equality.

Use when you need to: text lines difference · lines difference · subtract line set.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": "a\nb\nc\n",
  "b": "b\n"
}

Response:

{
  "result": {
    "text": "a\nc\n",
    "lines_in_a": 3,
    "lines_in_b": 1,
    "lines_out": 2
  }
}

How to call it

MCP

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

{
  "id": "text-lines-difference",
  "version": "1.0.0",
  "input": {
    "a": "a\nb\nc\n",
    "b": "b\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-lines-difference/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":"a\nb\nc\n","b":"b\n"}'

The machine-readable contract is at /v1/tools/text-lines-difference/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.