crop_image
Extract a rectangular region from an existing image by providing left, top, width, and height coordinates, and save the cropped result to a specified output path.
Instructions
Crop an existing image file to a rectangular sub-region.
Args: params (CropInput): source path, crop box (left/top/width/height), output path.
Returns: str: JSON {"ok": true, "path": "...", "width": W, "height": H}.
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": {
"params": "<params>"
},
"name": "crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |