document.set_rotation
Set a shape's rotation angle in degrees clockwise (0–360) around its center; use it to orient slide elements and ensure the rotation saves to OOXML on export.
Instructions
Set a shape's rotation in degrees (clockwise, 0..360). Stored on props.rotation; the renderer applies it as a Qt item transform around the shape centre. Round-trips through OOXML <a:xfrm rot="..."/> on save.
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": {
"shape_id": "<shape_id>",
"degrees": "<degrees>"
},
"name": "document.set_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| degrees | Yes | ||
| shape_id | Yes |