Set crop
snipaya_set_cropCrops image exports to a defined rectangle, or removes the crop when given null.
Instructions
Crop exports to a rectangle, or pass null to remove the crop.
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": {
"rect": "<rect>"
},
"name": "snipaya_set_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | Yes | ||
| tabId | No | Target tab id. Defaults to the active tab. | |
| relativeTo | No | Image id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image). |