rotate_pages
Rotate PDF pages clockwise by 90, 180, or 270 degrees; omit page selection to rotate all pages, with password support for protected files.
Instructions
Rotate pages clockwise by 90/180/270 degrees (all pages if pages omitted). 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>",
"degrees": "<degrees>"
},
"name": "rotate_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| degrees | Yes | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| rotated_pages | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |