Cut a PDF into parts
tarkle_split_documentCut one PDF (fileId from tarkle_list_files) that holds several documents into separate PDFs, one per document, saved into the workspace's Split parts folder. Three ways: (1) send parts ([{ title, pages: [1,2,3] }]: every page in one part at most, in the order to write them) to cut now, which costs nothing and answers with the new files; (2) send sections ([{ name: 'Invoice', description: 'a bill with a total to pay', partitionKey: 'invoice number' }], up to 20; the partitionKey is what tells two documents of the same kind apart, so two invoices in a row become two parts; optional rules change how pages are assigned) to have the pages classified: this spends credits (about 21 a page), returns a runId, and the suggested parts are read with tarkle_get_extraction a few seconds later; (3) send the runId of a finished suggestion (optionally with your own parts) to write its parts as files. Each new file can then be read with tarkle_extract_data. Only a PDF; a password-protected or unreadable file is refused. Only files this person can open are cut.
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": {
"workspaceId": "<workspaceId>"
},
"name": "tarkle_split_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | No | The cut to make: a title and the pages (1 is the first) of each part. | |
| rules | No | With sections: your own rules for where documents begin and end (for example 'keep every contract together'). Leave out for the default. | |
| runId | No | A finished suggestion: write its parts (or the parts you send) as files. | |
| fileId | No | The PDF to cut (from tarkle_list_files). Not needed with a runId. | |
| sections | No | Kinds of document to look for. Spends credits. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| tableCutoff | No | With sections: preserve reads whole tables when classifying (slower; for identifiers deep inside long tables). | |
| workspaceId | Yes | The workspace's id, from tarkle_list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| pages | No | ||
| runId | No | ||
| notice | No | ||
| status | No | ||
| credits | No | ||
| folderId | No |