Design
Add various texture overlays to images with customizable blend modes and intensity
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-add-texture' \
-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-texture' \
-F 'imageFile=/path/to/file.ext' \
-F 'textureType=canvas' \
-F 'blendMode=overlay' \
-F 'opacity=0.7' \
-F 'scale=1' \
-F 'intensity=0.5' \
-F 'outputFormat=original' \
-F 'quality=90'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/image-add-texture| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| imageFile | fileнужна загрузка | Да | Upload any image file to add texture effect to |
| textureType | select | Нет | Choose the type of texture |
| blendMode | select | Нет | Choose how the texture blends with the image |
| opacity | number | Нет | Opacity of the texture (0.0 to 1.0) |
| scale | number |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-image-add-texture": {
"name": "image-add-texture",
"description": "Add various texture overlays to images with customizable blend modes and intensity",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-add-texture",
"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-texture",
"arguments": {
"imageFile": "https://example.com/file.ext",
"textureType": "canvas",
"blendMode": "overlay",
"opacity": 0.7,
"scale": 1,
"intensity": 0.5,
"outputFormat": "original",
"quality": 90
}
}
}| Scale of the texture pattern (0.1 to 3.0) |
| intensity | number | Нет | Intensity of the texture details (0.0 to 1.0) |
| 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)"
}Вопросы или проблемы? Свяжитесь с [email protected]