Aspect ratio calculator
aspect_ratio_calculatorSimplify a width×height ratio and scale to a new width or height. Runs on smart-tools.xyz.
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": "aspect_ratio_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Original width | |
| height | Yes | Original height | |
| locale | No | Language for the source_url link (default en) | |
| new_width | No | Optional: target width → returns matching height | |
| new_height | No | Optional: target height → returns matching width |