Change the pages of a PDF (saved as a new PDF)
tarkle_edit_pdfPage tools on a PDF, saved as a NEW PDF: mergeFileIds (other PDFs appended in order, up to 9), keep or remove (pages like 1-3,5; not both), order (a new page order like [3,1,2]), rotate ([{pages, degrees 90, 180 or 270}]), crop (millimetres off each side, optional pages; the cut-off part is hidden, not deleted), blankAfter and blankAtStart (blank pages), pageNumbers (true, or {position, start}), watermark (text drawn over every page; it hides nothing underneath and is NOT redaction), title, author. They apply in that order; give at least one. name sets the new file's name (default " (edited).pdf"). The file is never changed: a NEW file is saved next to it (or in folderId) and its fileId is returned; a taken name is refused (NAME_TAKEN). The same function and limits as the Tarkle chat and the API: 40 MB a PDF, a password-protected or damaged PDF is refused with the reason.
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>",
"fileId": "<fileId>"
},
"name": "tarkle_edit_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Margins to cut off the pages, in millimetres. At least one side must be above 0. The cut-off part is hidden, not deleted. | |
| keep | No | Which pages to use, as page numbers and ranges counted from the first page, for example 1-3,5,8-. | |
| name | No | The new file's name; the .pdf extension is added or corrected. | |
| order | No | The page numbers in the order the pages should appear, for example [3,1,2]. | |
| title | No | Sets the title in the PDF's document properties. | |
| author | No | Sets the author in the PDF's document properties. | |
| fileId | Yes | A fileId from tarkle_list_files or tarkle_list_bin. | |
| remove | No | Which pages to use, as page numbers and ranges counted from the first page, for example 1-3,5,8-. | |
| rotate | No | Rotations to apply. Each item names the pages to turn and the angle. | |
| folderId | No | The folder for the new file; null for the library root; omit to keep the source's folder. | |
| 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. | |
| watermark | No | Text drawn diagonally over every page. It hides nothing underneath and is not redaction. | |
| blankAfter | No | Which pages to use, as page numbers and ranges counted from the first page, for example 1-3,5,8-. | |
| pageNumbers | No | true adds page numbers. An object also sets where they go and the first number. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. | |
| blankAtStart | No | true: add a blank page before the first page. | |
| mergeFileIds | No | Other PDFs to append after this one, in the order given. Each is a fileId from tarkle_list_files or tarkle_list_bin. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| notes | No |