text_chunk
Split long text into overlapping chunks by character size, preferring sentence-ending breaks, to prepare documents for retrieval-augmented generation.
Instructions
RAG 文本切块:把长文本按 chunkSize 切成若干片段,支持 overlap 重叠,优先在句末断点切割。适合做检索增强的预处理。
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": "text_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 待切块的原始文本 | |
| overlap | No | 相邻块重叠字符数,默认 50 | |
| chunkSize | No | 每块最大字符数,默认 500 |