zoom_region
Enlarge a specified image region (or whole image) by a scale factor from 1 to 8, save the zoomed file, and return its path. Accepts optional pixel/normalized coordinates.
Instructions
放大图片指定区域(默认整图 2 倍),保存并返回路径。
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": "<image>"
},
"name": "zoom_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | [x1,y1,x2,y2],省略则放大整图 | |
| image | Yes | ||
| scale | No | 放大倍数 1-8,默认 2 | |
| coords | No | 坐标单位,默认 pixel | |
| out_path | No |