image.compress
Compress images from a URL or base64 data, outputting optimized bytes with configurable quality and format.
Instructions
Compress an image (fetch by URL OR pass base64 inline). Returns compressed bytes (base64 in MCP transport). Provide exactly one of url | imageBase64.
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": "image.compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| lossy | No | ||
| effort | No | ||
| format | No | ||
| quality | No | ||
| imageBase64 | No | Base64-encoded source image bytes (≤ 3.3MB binary). |