Compress & Convert Image
image_compress_convertCompress and convert local images to WebP, AVIF, JPEG, PNG, or TIFF while stripping EXIF/GPS metadata by default for privacy-preserving output.
Instructions
Convert and compress a local image to WebP, AVIF, JPEG, PNG, or TIFF via libvips (Sharp). Strips EXIF/GPS privacy metadata by default.
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": {
"inputPath": "<inputPath>"
},
"name": "image_compress_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Target image format | webp |
| quality | No | ||
| lossless | No | ||
| inputPath | Yes | Local source image path | |
| outputPath | No | Optional destination file path | |
| stripMetadata | No | Strip EXIF/GPS/camera metadata for privacy (default: true) |