convert_image
Convert images between PNG, JPEG, WebP, and AVIF formats with quality and compression presets. Standardize batches and reduce file size without AI processing.
Instructions
Convert images between formats without AI processing.
Use this when:
Converting image format (PNG to WebP, JPEG to PNG, etc.)
Optimizing file size with compression settings
Batch format standardization
NOT for:
AI-powered image generation (use generate_image instead)
Content modification with AI (use edit_image instead)
Example: "Convert photo.png to WebP format with 80% quality"
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>",
"outputFormat": "<outputFormat>",
"stripMetadata": "<stripMetadata>"
},
"name": "convert_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | ||
| fileName | No | ||
| inputPath | Yes | ||
| outputFormat | Yes | ||
| stripMetadata | Yes | ||
| compressionPreset | No |