pdf_rotate_pages
Rotate PDF pages clockwise by 90, 180, or 270 degrees. Specify a page range or rotate all pages to fix orientation.
Instructions
Rotate pages in a PDF by 90, 180, or 270 degrees. Rotation is additive to any existing rotation. Rotates all pages if no page range is specified.
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": {
"filePath": "<filePath>",
"degrees": "<degrees>",
"outputPath": "<outputPath>"
},
"name": "pdf_rotate_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the source PDF file | |
| pages | No | Page range to rotate, e.g. '1-5' or '1,3,5'. Omit to rotate all pages. | |
| degrees | Yes | Rotation angle: 90, 180, or 270 degrees clockwise | |
| outputPath | Yes | Absolute path for the rotated output PDF |