Text lines chunk

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

Split parsed lines into consecutive chunks of size lines each.

Use when you need to: text lines chunk · chunk lines · split lines by size.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

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

Response:

{
  "result": {
    "chunks": [
      "a\nb\n",
      "c\n"
    ],
    "lines_in": 3,
    "chunk_count": 2
  }
}

How to call it

MCP

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

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

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.