mcp-image mcp
v1.0.0 · MCP Tool · media · registry.pascalai.org
Image manipulation: resize, crop, convert formats, apply filters, rotate, flip and adjust colors.
imageresizecropconvertmanipulation
Input Parameters
| Parameter | Type | Description |
| operationrequired |
string |
One of: resize, crop, convert, rotate, flip, thumbnail, grayscale, blur, sharpen, brightness, contrast, watermark, metadata, composite, trim. |
| input_pathrequired |
string |
|
| output_pathoptional |
string |
|
| widthoptional |
integer |
|
| heightoptional |
integer |
|
| formatoptional |
string |
One of: jpeg, png, webp, gif, bmp, tiff. |
| qualityoptional |
integer |
Default: 85. |
| xoptional |
integer |
Crop X offset. |
| yoptional |
integer |
Crop Y offset. |
| angleoptional |
number |
Rotation angle. |
| directionoptional |
string |
One of: horizontal, vertical. |
| factoroptional |
number |
Blur/sharpen/brightness/contrast factor. |
| maintain_aspectoptional |
boolean |
Default: True. |
| watermark_textoptional |
string |
|
| watermark_imageoptional |
string |
|
Output Fields
| Field | Type | Description |
| operation |
string |
|
| output_path |
string |
|
| width |
integer |
|
| height |
integer |
|
| format |
string |
|
| size |
integer |
|
| metadata |
object |
|
Examples
Resize and convert image
// Input
{
"operation": "resize",
"input_path": "/photos/photo.bmp",
"output_path": "/photos/photo_web.webp",
"width": 800,
"height": 600,
"format": "webp",
"quality": 85
}
// Output
{
"operation": "resize",
"output_path": "/photos/photo_web.webp",
"width": 800,
"height": 600,
"format": "webp"
}
Install & Discovery
Install
ppm install mcp-image
Get JSON Schema
GET /v1/packages/mcp-image/1.0.0/schema
Discover by keyword
GET /v1/mcp/discover?q=image
Discovery hint: Install with ppm install mcp-image or invoke remotely via POST /v1/invoke/mcp-image on the MCP Service.
PascalAI Usage
uses toolslib;
var Tool := LoadTool('mcp-image');
var R := Tool.Call(JsonObj([]));
Writeln(R.ToJSON);