Design
Создает плавные цветовые градиенты между несколькими цветами с настраиваемыми шагами и форматами
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/color-gradient-generator' \
-H 'Content-Type: application/json' \
-d '{"startColor":"Enter start color (e.g., #FF0000 or rgb(255, 0, 0))","endColor":"Enter end color (e.g., #0000FF or rgb(0, 0, 255))","steps":5,"format":"hex","direction":"linear","includeCSS":true,"includePreview":false}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/color-gradient-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| startColor | text | Да | — |
| endColor | text | Да | — |
| steps | number | Нет | — |
| format | select | Да | — |
| direction | select | Да | — |
| includeCSS |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-color-gradient-generator": {
"name": "color-gradient-generator",
"description": "Создает плавные цветовые градиенты между несколькими цветами с настраиваемыми шагами и форматами",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=color-gradient-generator",
"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": "color-gradient-generator",
"arguments": {
"startColor": "Enter start color (e.g., #FF0000 or rgb(255, 0, 0))",
"endColor": "Enter end color (e.g., #0000FF or rgb(0, 0, 255))",
"steps": 5,
"format": "hex",
"direction": "linear",
"includeCSS": true,
"includePreview": false
}
}
}| checkbox |
| Нет |
| — |
| includePreview | checkbox | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]