rotate_image
Rotates an entire image by a specified angle, using lossless GIMP rotation for 90, 180, or 270 degrees and interpolated layer rotation with flattening for other angles.
Instructions
Rotate the entire image.
Parameters:
angle: Rotation in degrees — 90, 180, 270 use lossless GIMP rotation; other values rotate all layers with interpolation and flatten
image_index: Target image index (default 0)
Returns status dict.
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": {
"angle": "<angle>"
},
"name": "rotate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | Yes | ||
| image_index | No |