Zoom in on a photo
zoom_inCuts a frame of the given shape out of one of the user's photos and upscales it to a full photo, paid from their credits. x, y and w are the frame's left edge, top edge and width as fractions of the photo (0 to 1); left out, the largest frame is centred. Pass the price the user agreed to as max_credits: the photo's prices from get_shoot or list_photos name it. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.
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": {
"photo_id": "<photo_id>",
"ratio": "<ratio>",
"max_credits": "<max_credits>"
},
"name": "zoom_in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| w | No | ||
| x | No | ||
| y | No | ||
| again | No | true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one. | |
| ratio | Yes | ||
| photo_id | Yes | ||
| max_credits | Yes |