Image Crop
image_cropCrop local PNG pixels to a specified x, y, width, and height box, then save a fresh output file without model inference or provider uploads.
Instructions
Crop local PNG pixels without model inference or provider uploads.
Requires an independently installed FFmpeg and respects LOCAL_FILE_ACCESS_ROOT. A source hash binds the crop to bytes; it does not establish factual support or whether the input was synthetic. Large outputs retain metadata/path 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": {
"file_path": "<file_path>",
"output_path": "<output_path>",
"crop_box": "<crop_box>"
},
"name": "image_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop_box | Yes | Integer x, y, width, height in original image pixels | |
| file_path | Yes | Local 8-bit RGB/RGBA noninterlaced PNG | |
| output_path | Yes | Fresh local PNG output path; never overwrites | |
| include_image | No | Include a native PNG block up to 1 MiB; false returns identical text metadata |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||