chunk_text
Split documents into RAG-ready chunks using fixed, sentence, or recursive strategies while retaining source offsets for accurate citations; configure chunk size and overlap as needed.
Instructions
Split a document into RAG chunks with source offsets for citations.
strategy is one of "fixed", "sentence", "recursive". size is the max characters per chunk. overlap applies to "fixed"; overlap_sentences applies to "sentence".
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>"
},
"name": "chunk_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| text | Yes | ||
| overlap | No | ||
| strategy | No | recursive | |
| overlap_sentences | No |