Document Tools
Paketnoe sozdanie sertifikatov iz CSV
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pdf-certificates-batch' \
-H 'Content-Type: application/json' \
-d '{"csvContent":"name,date,course,score\nAlice Zhang,2026-02-01,TS Bootcamp,98\nBob Chen,2026-02-01,TS Bootcamp,95","certificateTitle":"Certificate of Achievement","organizationName":"Elysia Academy","awardText":"This certifies that","signatoryName":"Program Director","signatureLabel":"Authorized Signature","datePrefix":"Date:","nameField":"name","dateField":"date","courseField":"course","scoreField":"score","themeColor":"#1d4ed8","pageSize":"A4","landscape":false,"waitUntil":"networkidle0","waitTime":0}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pdf-certificates-batch| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| csvContent | textarea | Да | — |
| certificateTitle | text | Нет | — |
| organizationName | text | Нет | — |
| awardText | text | Нет | — |
| signatoryName | text | Нет | — |
| signatureLabel | text | Нет | — |
| datePrefix | text | Нет | — |
| nameField | text | Нет | — |
| dateField | text | Нет | — |
| courseField | text | Нет | — |
| scoreField | text | Нет | — |
| themeColor | color | Нет | — |
| pageSize | select | Нет | — |
| landscape | checkbox | Нет | — |
| waitUntil | select | Нет | — |
| waitTime | number | Нет | — |
Файловый результат
{
"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-pdf-certificates-batch": {
"name": "pdf-certificates-batch",
"description": "Paketnoe sozdanie sertifikatov iz CSV",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-certificates-batch",
"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": "pdf-certificates-batch",
"arguments": {
"csvContent": "name,date,course,score\nAlice Zhang,2026-02-01,TS Bootcamp,98\nBob Chen,2026-02-01,TS Bootcamp,95",
"certificateTitle": "Certificate of Achievement",
"organizationName": "Elysia Academy",
"awardText": "This certifies that",
"signatoryName": "Program Director",
"signatureLabel": "Authorized Signature",
"datePrefix": "Date:",
"nameField": "name",
"dateField": "date",
"courseField": "course",
"scoreField": "score",
"themeColor": "#1d4ed8",
"pageSize": "A4",
"landscape": false,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]