resize_for_platform
Resize advertising creative assets for any platform using Cloudinary, with AI generative fill to adapt aspect ratios that differ from the source.
Instructions
Generate a Cloudinary transformation URL to resize an asset for a specific advertising platform/channel. Uses AI generative fill for aspect ratios that differ significantly from the source.
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>",
"channel": "<channel>"
},
"name": "resize_for_platform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Target channel name (e.g., "GDN Medium Rectangle", "Facebook Stories") | |
| publicId | Yes | Cloudinary public_id of the source asset | |
| useGenFill | No | Force AI generative fill (default: auto-detect based on aspect ratio difference) | |
| sourceWidth | No | Source asset width | |
| sourceHeight | No | Source asset height |