Rotate PDF
pdf_rotate_pagesRotate selected or all PDF pages clockwise by 90, 180, or 270 degrees to correct orientation, then save to a new file without overwriting the original.
Instructions
Rotate PDF clockwise by 90, 180 or 270 degrees.
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": "<input>",
"output": "<output>"
},
"name": "pdf_rotate_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Clockwise rotation in degrees. | |
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | No | Page numbers or ranges, such as "1, 3-5". Omit for every page. | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| pages | Yes | ||
| output | Yes |