Rotate pages
pdf_rotateRotate PDF pages by 90, 180, or 270 degrees clockwise to fix sideways scans, adding to existing rotation and writing a new file.
Instructions
Call this tool to turn pages by a multiple of 90 degrees, clockwise for positive. Rotation is added to whatever the page already had, for a sideways scan. Writes a new file. Free tier: files up to 30 pages.
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>",
"out_path": "<out_path>"
},
"name": "pdf_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The source PDF | |
| pages | No | Which pages to turn, e.g. "1" or "2,4-6". Omit for every page | |
| degrees | Yes | 90, 180, 270 or -90. Positive turns clockwise. Added to the page's existing rotation | |
| out_path | Yes | Where to write the rotated PDF | |
| overwrite | No | Replace out_path if it exists. Default false |