aspect-ratio
Compute the simplified aspect ratio of a width × height pair, plus the decimal ratio. Useful for image, video, screen, and design contexts.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width in any unit. | |
| height | Yes | Height in same unit as width. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcd | Yes | Greatest common divisor used to simplify. | |
| simplified | Yes | Simplified width and height. | |
| ratio_string | Yes | Simplified ratio in 'W:H' form. | |
| ratio_decimal | Yes | Decimal width-to-height ratio. |