Split a document
split_documentSplit an uploaded document into sub-documents using AI to determine each start point, then return the new document IDs. Provide instructions to define splits or skip unneeded parts.
Instructions
Split one uploaded document into sub-documents, with AI deciding where each one starts, and wait for the new document ids. Credits: 0.2/page, rounded up.
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": {
"document_id": "<document_id>"
},
"name": "split_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | No | Dataset for the new documents. | |
| document_id | Yes | ||
| instructions | No | How to split, e.g. 'one document per invoice'. Can also skip parts you don't need. |