image_convert
Convert images between png, jpeg, webp, avif, and bmp by setting input and output paths; the output extension must match the chosen format.
Instructions
Convert an image to png, jpeg, webp, avif or bmp. The output extension must match.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>",
"format": "<format>"
},
"name": "image_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| output_path | Yes | ||
| input_format | Yes | ||
| output_bytes | Yes |