Text trailing whitespace trim

text-trailing-whitespace-trim · version 1.0.0 · Text · free, no key needed

Remove trailing whitespace from each line in a text.

Use when you need to: text trailing whitespace trim · trim trailing whitespace · remove trailing whitespace.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "a \n b\t\r\nc   "
}

Response:

{
  "result": {
    "text": "a\n b\r\nc",
    "trimmed_lines": 3
  }
}

How to call it

MCP

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

{
  "id": "text-trailing-whitespace-trim",
  "version": "1.0.0",
  "input": {
    "text": "a \n b\t\r\nc   "
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-trailing-whitespace-trim/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"a \n b\t\r\nc   "}'

The machine-readable contract is at /v1/tools/text-trailing-whitespace-trim/versions/1.0.0.

CLI

node cli.mjs run text-trailing-whitespace-trim 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.