Elysia Tools Docs
RU
Язык
ZHESPTRUFRDEEN
На сайт
Обзор инструментов

Design

Add Texture Effect

Add various texture overlays to images with customizable blend modes and intensity

file· Файловый результатОткрыть инструмент

Быстрый старт

Вызовите этот инструмент из своего кода на трёх языках.

cURL
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-add-texture' \
  -H 'Content-Type: application/json' \
  -d '{"filename":"imageFile.ext","contentType":"application/octet-stream","size":12345}'

# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
  --data-binary @/path/to/file.ext

# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/ru/api/tools/image-add-texture' \
  -F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
  -F 'textureType=canvas' \
  -F 'blendMode=overlay' \
  -F 'opacity=0.7' \
  -F 'scale=1' \
  -F 'intensity=0.5' \
  -F 'outputFormat=original' \
  -F 'quality=90'

© 2026 Elysia Tools. Документация для разработчиков.

На сайтОбзор инструментов

Справочник API

Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.

Endpoint

HTTP
POST https://api.elysiatools.com/ru/api/tools/image-add-texture

Параметры

ИмяТипОбязательныйОписание
imageFilefileнужна загрузкаДаUpload any image file to add texture effect to
textureTypeselectНетChoose the type of texture
blendModeselectНетChoose how the texture blends with the image
opacitynumberНетOpacity of the texture (0.0 to 1.0)
scalenumberНетScale of the texture pattern (0.1 to 3.0)
intensitynumberНетIntensity of the texture details (0.0 to 1.0)
outputFormatselectНетChoose output format or keep original
qualitynumberНетOutput quality for lossy formats (WebP, JPEG)
Параметры типа «файл» необходимо сначала загрузить через POST /upload/image-add-texture, затем возвращённый filePath передаётся в соответствующее поле.

Формат ответа

Файловый результат

JSON
{
  "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)"
}

Интеграция MCP

Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.

Конфигурация сервера

Добавьте этот блок в конфигурацию вашего MCP-клиента:

mcp.json
{
  "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 выведите список доступных инструментов:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Вызвать этот инструмент

Вызовите инструмент по его id; аргументы формируются из его параметров:

tools/call
{
  "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
}
  }
}
Объединяйте несколько инструментов в одной сессии списком toolId через запятую, напр. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (макс. 20).
Файловые параметры принимают только публичный URL файла (https://…). Локальные пути, data: URI и строки Base64 не поддерживаются.

Вопросы или проблемы? Свяжитесь с [email protected]

Обзор инструментов
Открыть инструмент