Place another photo on a photo
photo_placePut another picture your user gave you onto a photo canvas, as a photo layer above the photo (a logo, a product shot, a second view): src (an https URL or a data: URL) or upload: true for a file you have (the reply has an address to send its bytes to with curl). It is taken in as the first photo was (location removed, the same plan limits: megapixels and MB) and checked the same way. box {x, y, w, h?, deg?}: where it goes, fractions of the picture (x and w of its width, y and h of its height; h left out keeps its shape; deg turns it), centred at half the width when left out; name names its layer; at places the layer as photo_edit's at does. It is stretched to its box; photo_edit changes it after ({layer: name, set: {box, blend, opacity, mask}}, {add: {...}, layer: name} for its own adjustments). Up to 4 photos on a canvas, the first included. Where the photo engine runs in the page, it is processed when the photo's page is open, and placed then.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photo_place"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | where among the layers, as photo_edit: a position (1 just above the photo), "top" (default), "bottom", {before: name}, {after: name} | |
| box | No | {x, y, w, h?, deg?}: fractions of the picture | |
| src | No | an https URL or a data: URL of the picture | |
| name | No | ||
| canvas | No | ||
| upload | No | true: reply with an upload address for a file you have (send it with curl --data-binary) | |
| preview | No |