rotate_pages
Rotate PDF pages by 90, 180, or 270 degrees and save the result to a new file or overwrite the original in place. Choose specific pages or rotate the entire document.
Instructions
Rotate pages and save a new PDF. degrees is a multiple of 90, clockwise (90, 180, 270, or -90 for counter-clockwise). pages empty = every page.
output_path: must end in .pdf. Default: _rotated.pdf next to the input. To rotate a file in place, pass its own path as output_path together with overwrite=true.
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": {
"path": "<path>",
"degrees": "<degrees>"
},
"name": "rotate_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| degrees | Yes | ||
| password | No | ||
| overwrite | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |