convert_image_format
Convert an image to a different format, with optional resizing and JPEG quality adjustment.
Instructions
Convert an image to a different format with optional resizing.
Args: input_path: Path to input image output_path: Path for output image (format determined by extension) width: Optional new width in pixels height: Optional new height in pixels quality: JPEG quality (1-100)
Returns: Output path or error message
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>"
},
"name": "convert_image_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| quality | No | ||
| input_path | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |