image_rotate
Rotate an image clockwise by 90, 180 or 270 degrees (no other angles). Reads and writes JPEG, PNG, WebP, AVIF, GIF (first frame), TIFF
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": {
"fileBase64": "<fileBase64>",
"degrees": "<degrees>"
},
"name": "image_rotate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | png, jpeg (or jpg), webp, avif, gif, tiff, bmp or ico; image/... types also work. Default: the same format as the input | |
| degrees | Yes | Clockwise rotation: 90, 180 or 270. | |
| quality | No | 0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG | |
| fileBase64 | Yes | The input file as a base64 string, without a data: prefix. | |
| stripMetadata | No | Remove EXIF/GPS/colour-profile data. Default true | |
| backgroundColor | No | Fill for transparent areas (always used for JPEG), e.g. '#ffffff' or 'white' |