insert_blank_pages
Add blank pages to a PDF after specified page numbers, with an optional count per insertion; use position 0 to place pages before the first page.
Instructions
Insert count blank pages (1-100) after each page number in after; 0 inserts before the first page. E.g. after=[3, 7] adds a blank page after pages 3 and 7. Each blank page is the size of the page before it. inserted lists the new pages' numbers in the output. Needs the owner password if the PDF forbids document assembly. Signed PDFs are refused.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>",
"after": "<after>"
},
"name": "insert_blank_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | ||
| count | No | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| output | Yes | ||
| inserted | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |