util_text_chunk
Text chunker for RAG and embeddings — Split long text (URL-encoded; roughly 12,000 chars fits in a GET URL, hard cap 30,000) into model-sized chunks for embeddings, RAG or long-document prompts. Breaks on paragraph, then sentence, then word boundaries; size = target tokens per chunk (default 400), overlap = shared tokens between chunks (default 10%), by = auto|paragraph|sentence|word. Each chunk is an exact substring with character offsets and an estimated token count. Offline and instant. Price: $0.001 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"size": "<size>",
"overlap": "<overlap>",
"by": "<by>"
},
"name": "util_text_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | auto | |
| size | Yes | ||
| text | Yes | First paragraph of a long document... Second paragraph... | |
| overlap | Yes |