resize-image
Resize images to specified dimensions with optional aspect ratio preservation using the MCP Media Processing Server. Input file path and target width/height are required, with output file saving flexibility.
Instructions
Resize image to specified dimensions
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": {
"inputPath": "<inputPath>"
},
"name": "resize-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Target height in pixels | |
| inputPath | Yes | Absolute path to input image file | |
| maintainAspectRatio | No | Whether to maintain aspect ratio when resizing | |
| outputFilename | No | Output filename (only used if outputPath is not provided) | |
| outputPath | No | Optional absolute path for output file. If not provided, file will be saved in Downloads folder | |
| width | No | Target width in pixels |