Image · 1 credit
Image resize
Give agents deterministic image geometry — width, height, crop, rotate — without handing them your whole image suite.
What it does
Call this tool (id: image_resize) for geometry export on a product still: fit, pad to aspect/square, max-edge resize, social presets, expand/fill background. Example: "letterbox still to 9:16" → mode=pad, aspect=9:16.
Example use cases
- Thumbnail and avatar prep before upload.
- Normalizing user uploads to a fixed canvas.
- Agent pipelines that resize, then overlay or filter in later steps.
How it works in Toolporten
Compose image_resize with image_filters in one toolbox when the job is visual. Social presets are mode=preset on image_resize (former image_social_size). Your MCP client lists only enabled tools, so the model stays focused and credit use stays predictable.
MCP call example
{
"name": "image_resize",
"arguments": {
"image": "<base64-png>",
"width": 512,
"height": 512,
"mode": "crop"
}
}