Compress Image
compress_imageReduce image file size by applying adjustable compression and optional width/height caps, with output format and quality control.
Instructions
Compress an image to reduce file size, optionally capping dimensions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compress_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format (jpeg, png, webp, ...). Defaults to source format. | |
| quality | No | Compression quality 1-100. | |
| max_width | No | Optionally cap the width in pixels. | |
| max_height | No | Optionally cap the height in pixels. | |
| source_url | No | Public URL of the image. | |
| file_base64 | No | Base64-encoded image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||