Read Image Crop
read_image_cropRead a rectangular crop from an original image by specifying top-left pixel coordinates, width, and height; returns the selected region scaled to a maximum 1600-pixel longest side.
Instructions
Read a rectangular crop directly from the original image, rendered at a safe maximum longest side of 1600 px. Coordinates are original-image pixels from the top-left corner.
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>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "read_image_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Crop left coordinate in original-image pixels. | |
| y | Yes | Crop top coordinate in original-image pixels. | |
| path | Yes | Image path relative to workspace root. | |
| width | Yes | Crop width in original-image pixels. | |
| height | Yes | Crop height in original-image pixels. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use default workspace. | |
| max_dimension | No | Crop output longest-side dimension. Default/max: 1600 pixels. |