crop_image
Crop images to specific regions using pixel coordinates from the top-left corner. Define left, top, right, and bottom boundaries to extract desired portions of images.
Instructions
Crop an image to a specific region.
Coordinates are in pixels from the top-left corner.
Args: path: Absolute path to the image file. left: Left edge x coordinate. top: Top edge y coordinate. right: Right edge x coordinate. bottom: Bottom edge y coordinate. output_path: Where to save. Defaults to _cropped..
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>",
"left": "<left>",
"top": "<top>",
"right": "<right>",
"bottom": "<bottom>"
},
"name": "crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| left | Yes | ||
| top | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||