rotate_pdf
Rotate pages in a PDF by 90, 180, or 270 degrees. Specify a page range or rotate all pages. Returns base64-encoded rotated PDF.
Instructions
Rotate pages in a PDF.
Args: pdf_base64: Base64-encoded PDF file. angle: Rotation angle in degrees (90, 180, 270). pages: Page range to rotate (e.g. "1-3", "all"). Default: all pages.
Returns: Base64-encoded rotated PDF.
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": {
"pdf_base64": "<pdf_base64>",
"angle": "<angle>"
},
"name": "rotate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_base64 | Yes | ||
| angle | Yes | ||
| pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |