Skip to content
HALOWERK

Text Tools

icu grapheme safe utf8 frames

Unicode text splitting returns UTF-8 frames that preserve entire grapheme clusters. Use it when an agent needs byte-limited text payloads without splitting a displayed character.

POST https://text.halowerk.com/v1/icu-grapheme-safe-utf8-frames

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
localestringNo
max_bytesintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 7000,
      "minLength": 1
    },
    "locale": {
      "type": "string",
      "maxLength": 45,
      "minLength": 1
    },
    "max_bytes": {
      "type": "integer",
      "minimum": 4,
      "maximum": 5000
    }
  },
  "required": [
    "text",
    "max_bytes"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "text": "Operating systems. Library management system.",
  "locale": "en",
  "max_bytes": 22
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "frames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "bytes": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "frames",
        "bytes"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub →