delete_pages
Remove specified pages from a PDF using page numbers or ranges, and supply the owner password if the document forbids assembly.
Instructions
Delete pages, e.g. pages="2,5-7". Needs the owner password if the PDF forbids document assembly.
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>",
"pages": "<pages>"
},
"name": "delete_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| output | Yes | ||
| deleted | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |