zoom
Enlarge a selected image region with a fine, labeled source-pixel grid to read exact rectangle coordinates from the preview. The crop is saved to temp, leaving the original image unchanged.
Instructions
Enlarged crop of [x1,y1,x2,y2] with a fine grid labelled in SOURCE image px, so you can read an exact rect straight off the preview (spec scale 1). Use it after grid, or to check a rect from locate. Keep regions under ~500 px wide or the labels get too dense. Writes the crop to the temp folder; the input is not changed. Returns the zoom path, region, size, notes and the preview.
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": {
"image_path": "<image_path>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "zoom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Left edge of the region, source image px. | |
| x2 | Yes | Right edge of the region, source image px (greater than x1). | |
| y1 | Yes | Top edge of the region, source image px. | |
| y2 | Yes | Bottom edge of the region, source image px (greater than y1). | |
| step | No | Fine grid spacing in source px (> 0). | |
| image_path | Yes | Path of a PNG, JPEG or WebP image on this machine (~ allowed). |