Text slice codepoints

text-slice-codepoints · version 1.0.0 · Text · free, no key needed

Slice a string by Unicode code-point indexes, not UTF-16 code units.

Use when you need to: text slice codepoints · slice text by unicode code points · code point substring.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "hello",
  "start": 1,
  "length": 3
}

Response:

{
  "result": {
    "text": "ell"
  }
}

How to call it

MCP

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

{
  "id": "text-slice-codepoints",
  "version": "1.0.0",
  "input": {
    "text": "hello",
    "start": 1,
    "length": 3
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-slice-codepoints/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"hello","start":1,"length":3}'

The machine-readable contract is at /v1/tools/text-slice-codepoints/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.