image_flip
Flip an image horizontally (mirror left to right) or vertically. 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>",
"direction": "<direction>"
},
"name": "image_flip"
}
}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 | |
| quality | No | 0-1 (for example 0.8) or 1-100 (for example 80); JPEG, WebP, AVIF, and palette PNG | |
| direction | Yes | Direction: one of horizontal, vertical. | |
| 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' |