rotate_page
Rotates a PDF sheet 90, 180, or 270 degrees clockwise before measuring, transforming existing takeoff shapes, markups, and calibrations so they stay locked to the drawing.
Instructions
Rotate a sheet's page in the PDF (90, 180, or 270 degrees clockwise) before measuring. Transforms all existing takeoff shapes, markups, and calibrations on that sheet to remain locked to the drawing. Output file path is optional (default: "_rotated.pdf"); pass overwrite:true to allow replacing an existing file. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.
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": {
"sheet": "<sheet>",
"angle": "<angle>"
},
"name": "rotate_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | Yes | Clockwise rotation angle in degrees: 90, 180, or 270 | |
| sheet | Yes | Sheet key ("plan.pdf", "plan.pdf#2") or sheet number ("A-101") | |
| overwrite | No | Replace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately destroy an unrelated file. | |
| output_path | No | Destination file path (default: "<file>_rotated.pdf") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| angle | Yes | ||
| sheet | Yes | ||
| width_px | Yes | ||
| height_px | Yes | ||
| output_file | No | ||
| shapes_transformed | Yes | ||
| markups_transformed | Yes |