uichemy_crop_image
Crop a picture to a shape, and/or shrink it — as a NEW file, which is then put in the slot. This is the change that survives: sections export to static HTML, so a crop that exists only as CSS on our own markup ships uncropped. focus decides which part survives the crop — the focal point — and maxWidth is how you stop a 4000px photograph being downloaded by every visitor to fill a 400px card. The original is untouched and still in storage, so a second crop can start from it rather than compounding.
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": {
"projectId": "<projectId>",
"slot": "<slot>"
},
"name": "uichemy_crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The picture to crop. Defaults to whatever is in the slot now. | |
| slot | Yes | The image slot to put the result in. | |
| focus | No | Which part to keep. Default centre. | |
| ratio | No | ||
| maxWidth | No | Longest edge in pixels. | |
| projectId | Yes |