chunk_document
Split large documents into smaller overlapping chunks for embedding and semantic search. Provide content and document ID to prepare text for ingestion and retrieval.
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": {
"content": "<content>",
"documentId": "<documentId>"
},
"name": "chunk_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| metadata | No | Optional metadata to associate with the chunks. | |
| chunkSize | No | The target size of each chunk in words (tokenized by whitespace). | |
| documentId | Yes | ||
| chunkOverlap | No | The number of words to overlap between consecutive chunks. |