compress_image
Compress an image for vision model input, optionally extracting OCR text to reduce token usage.
Instructions
Compress an image for vision model input, with optional OCR text extraction.
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": {
"image_path": "<image_path>"
},
"name": "compress_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | ||
| image_path | Yes | ||
| extract_text | No | ||
| max_dimension | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |