Design
Add gradient overlay effects to images with customizable colors, directions, and blend modes
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-add-gradient' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/image-add-gradient' \
-F 'imageFile=/path/to/file.ext' \
-F 'gradientType=linear' \
-F 'startColor=#000000' \
-F 'endColor=#ffffff' \
-F 'direction=45' \
-F 'opacity=0.5' \
-F 'blendMode=over' \
-F 'outputFormat=png' \
-F 'quality=90'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-add-gradient| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Image to apply gradient overlay |
| gradientType | select | No | Type of gradient to apply |
| startColor | color | No | Starting color of the gradient |
| endColor | color | No | Ending color of the gradient |
| direction | number | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-image-add-gradient": {
"name": "image-add-gradient",
"description": "Add gradient overlay effects to images with customizable colors, directions, and blend modes",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-gradient",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-add-gradient",
"arguments": {
"imageFile": "https://example.com/file.ext",
"gradientType": "linear",
"startColor": "#000000",
"endColor": "#ffffff",
"direction": 45,
"opacity": 0.5,
"blendMode": "over",
"outputFormat": "png",
"quality": 90
}
}
}| Direction of linear gradient (0-360 degrees) |
| opacity | range | No | Opacity of the gradient overlay (0.0 to 1.0) |
| blendMode | select | No | How to blend the gradient with the image |
| outputFormat | select | No | Output format for the result image |
| quality | number | No | Output quality for lossy formats |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]