Design
Add geometric pattern overlays to images with customizable colors, size, and rotation
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-add-pattern' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/image-add-pattern' \
-F 'imageFile=/path/to/file.ext' \
-F 'patternType=dots' \
-F 'foregroundColor=#000000' \
-F 'backgroundColor=#ffffff' \
-F 'size=10' \
-F 'spacing=20' \
-F 'opacity=0.8' \
-F 'rotation=0' \
-F 'blendMode=overlay' \
-F 'outputFormat=original' \
-F 'quality=90'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/image-add-pattern| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| imageFile | fileнужна загрузка | Да | Upload any image file to add pattern effect to |
| patternType | select | Нет | Choose the type of geometric pattern |
| foregroundColor | color | Нет | Color of the pattern elements |
| backgroundColor | color | Нет | Background color of the pattern |
| size | number | Нет | Size of pattern elements (1-50 pixels) |
| spacing | number | Нет | Spacing between pattern elements (5-100 pixels) |
| opacity | number | Нет | Opacity of the pattern (0.0 to 1.0) |
| rotation | number | Нет | Rotation angle of the pattern (0-360 degrees) |
| blendMode | select | Нет | Choose how the pattern blends with the image |
| outputFormat | select | Нет | Choose output format or keep original |
| quality | number | Нет | Output quality for lossy formats (WebP, JPEG) |
Файловый результат
{
"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)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-image-add-pattern": {
"name": "image-add-pattern",
"description": "Add geometric pattern overlays to images with customizable colors, size, and rotation",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-pattern",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-add-pattern",
"arguments": {
"imageFile": "https://example.com/file.ext",
"patternType": "dots",
"foregroundColor": "#000000",
"backgroundColor": "#ffffff",
"size": 10,
"spacing": 20,
"opacity": 0.8,
"rotation": 0,
"blendMode": "overlay",
"outputFormat": "original",
"quality": 90
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]