generate_transform_url
Generate a Cloudinary transformation URL with custom parameters for image processing tasks not covered by standard resize functions. Specify width, height, crop, and more.
Instructions
Generate a Cloudinary transformation URL with specific parameters. Use this for custom transforms not covered by resize_for_platform.
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": {
"publicId": "<publicId>",
"width": "<width>",
"height": "<height>"
},
"name": "generate_transform_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Crop mode | |
| width | Yes | Target width | |
| format | No | Output format (auto, jpg, png, webp) | |
| height | Yes | Target height | |
| gravity | No | Gravity (auto, auto:faces, center, north, south, etc.) | |
| quality | No | Quality (auto, auto:best, auto:good, auto:eco, or 1-100) | |
| publicId | Yes | Cloudinary public_id | |
| background | No | Background (gen_fill, blurred, auto, or hex color) |