Format Conversion
Заполняет placeholders в шаблоне Excel
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/xlsx-template-filler' \
-F 'file=@/path/to/templateFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/xlsx-template-filler' \
-F 'templateFile=/public/samples/xlsx/xlsx-template-filler-template.xlsx' \
-F 'variablesJson={
"title": "Sales Summary",
"report_date": "2026-03-05",
"customer": {
"name": "Elysia Labs"
},
"total_amount": 12850.75
}' \
-F 'strictMode=false'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/xlsx-template-filler| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| templateFile | fileнужна загрузка | Да | — |
| variablesJson | textarea | Да | — |
| strictMode | checkbox | Нет | — |
Файловый результат
{
"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-xlsx-template-filler": {
"name": "xlsx-template-filler",
"description": "Заполняет placeholders в шаблоне Excel",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-template-filler",
"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": "xlsx-template-filler",
"arguments": {
"templateFile": "/public/samples/xlsx/xlsx-template-filler-template.xlsx",
"variablesJson": "{\n \"title\": \"Sales Summary\",\n \"report_date\": \"2026-03-05\",\n \"customer\": {\n \"name\": \"Elysia Labs\"\n },\n \"total_amount\": 12850.75\n}",
"strictMode": false
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]