Home / Servers / Developer Toolbox / aspect_ratio
Aspect ratio
An MCP tool from the Developer Toolbox server, hosted on mcp.hjlabs.in.
Reduce a pixel width and height to its simplest aspect ratio, and optionally scale it to a target width or height while preserving that ratio.
Name on the gateway: devtools__aspect_ratio · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
width required | number | Width in pixels. |
height required | number | Height in pixels. |
targetWidth | number | Optional: scale to this width and report the matching height. |
targetHeight | number | Optional: scale to this height and report the matching width. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "devtools__aspect_ratio",
"arguments": {
"width": 0,
"height": 0
}
}Or connect the Developer Toolbox server directly, which lists 18 tools including this one:
claude mcp add --transport http hj-devtools https://mcp.hjlabs.in/mcp/devtools \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the aspect ratio tool with width set to ….