image_compress
Reduce image file size and dimensions for AI vision agents by compressing or resizing to a work directory, outputting JPEG files and returning only file paths.
Instructions
Compress/resize an image to a job workdir. Default format is JPEG for local agent compatibility. Returns output file paths only.
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": {
"path": "<path>"
},
"name": "image_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | No | jpeg | |
| job_id | No | ||
| quality | No | ||
| max_edge | No | ||
| strip_metadata | No |