text_chunk
Text chunker for RAG — Split a document into embedding-ready chunks that respect paragraph and sentence boundaries. Pass text= or url= (readable page text is extracted first, up to 40,000 characters). Optional: size= target tokens per chunk (50-4000, default 400), overlap= tokens carried into the next chunk (default 12% of size, max half), mode=sentence|paragraph|token, max_chunks= (default 200, max 500). Returns each chunk with text, character offsets, word and token estimates and overlap, plus size stats. Pairs with /v1/embeddings and /v1/rerank. Price: $0.002 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": {
"url": "<url>"
},
"name": "text_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https://en.wikipedia.org/wiki/Retrieval-augmented_generation |