Design
Разделите одно изображение на сетку из нескольких плиток. Идеально подходит для создания постов Instagram 3x3, баннеров или печатных фотосеток.
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-grid-layout' \
-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-grid-layout' \
-F 'imageFile=/path/to/file.ext' \
-F 'gridType=3x3' \
-F 'customColumns=0' \
-F 'customRows=0' \
-F 'numbering=false' \
-F 'outputFormat=png' \
-F 'quality=90' \
-F 'zipOutput=true'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/image-grid-layout| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| imageFile | fileнужна загрузка | Да | The image that will be sliced into grid tiles |
| gridType | select | Да | Choose how to divide the image |
| customColumns | number | Нет | Number of columns for custom grid |
| customRows | number | Нет | Number of rows for custom grid |
| numbering | checkbox |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-image-grid-layout": {
"name": "image-grid-layout",
"description": "Разделите одно изображение на сетку из нескольких плиток. Идеально подходит для создания постов Instagram 3x3, баннеров или печатных фотосеток.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-grid-layout",
"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-grid-layout",
"arguments": {
"imageFile": "https://example.com/file.ext",
"gridType": "3x3",
"customColumns": 0,
"customRows": 0,
"numbering": false,
"outputFormat": "png",
"quality": 90,
"zipOutput": true
}
}
}| Add sequential numbers to each tile |
| outputFormat | select | Да | — |
| quality | number | Нет | — |
| zipOutput | checkbox | Нет | Create a ZIP file containing all tiles |
Файловый результат
{
"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]