Text delimiter chunk

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

Split text on an explicit literal delimiter (Python str.split rules, optional max_splits) with spans and line numbers.

Use when you need to: split text on a custom delimiter · chunk a document at every separator marker · split on a multi character separator and keep empty pieces.

Decide before calling

Read the versioned contract and the supported scope below. Reuse text-delimiter-chunk@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use text-delimiter-chunk@1.0.0 for split text on a custom delimiter. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "1,2,,3,",
  "delimiter": ","
}

Response:

{
  "result": {
    "chunk_count": 5,
    "delimiter_count": 4,
    "chunks": [
      {
        "index": 0,
        "start": 0,
        "end": 1,
        "start_line": 1,
        "end_line": 1,
        "text": "1"
      },
      {
        "index": 1,
        "start": 2,
        "end": 3,
        "start_line": 1,
        "end_line": 1,
        "text": "2"
      },
      {
        "index": 2,
        "start": 4,
        "end": 4,
        "start_line": 1,
        "end_line": 1,
        "text": ""
      },
      {
        "index": 3,
        "start": 5,
        "end": 6,
        "start_line": 1,
        "end_line": 1,
        "text": "3"
      },
      {
        "index": 4,
        "start": 7,
        "end": 7,
        "start_line": 1,
        "end_line": 1,
        "text": ""
      }
    ]
  }
}

How to call it

MCP

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

{
  "id": "text-delimiter-chunk",
  "version": "1.0.0",
  "input": {
    "text": "1,2,,3,",
    "delimiter": ","
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-delimiter-chunk/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"1,2,,3,","delimiter":","}'

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

CLI

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

Get the client at /clients/cli/.