caelara_media_aspect_ratio_calc
Reduce dimensions to an aspect ratio, name the closest standard ratio, and scale width or height to targets or social-media presets.
Instructions
[Dynamic Media] Reduce dimensions to an aspect ratio, name the closest standard ratio, scale to a target and map to social-media presets Measured p50 12 ms, p95 42 ms (2026-11-21, benchmarks.caelaralabs.com). Calls https://media.caelaralabs.com.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "caelara_media_aspect_ratio_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width | |
| height | Yes | Height | |
| target_width | No | Scale to this width | |
| target_height | No | Scale to this height |