Text lines tail

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

Return the last n parsed lines with LF reconstruction.

Use when you need to: text lines tail · last n lines · tail lines.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "a\nb\nc\n",
  "n": 2
}

Response:

{
  "result": {
    "text": "b\nc\n",
    "lines_in": 3,
    "lines_out": 2
  }
}

How to call it

MCP

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

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

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.