Document Tools
Создает брендированный PDF-счет из структурированных позиций
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-invoice-generator' \
-F 'file=@/path/to/logoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/pdf-invoice-generator' \
-F 'companyName=Nova Studio LLC' \
-F 'companyInfo=123 Market Street
San Francisco, CA' \
-F 'customerName=Atlas Ventures' \
-F 'customerInfo=77 Mission Blvd
San Jose, CA' \
-F 'invoiceNumber=INV-2026-0042' \
-F 'invoiceDate=2026-02-05' \
-F 'dueDate=2026-02-20' \
-F 'currency=USD' \
-F 'taxRate=7.5' \
-F 'lineItems=[{"description":"Design Sprint","quantity":3,"unitPrice":1200}]' \
-F 'notes=Оплата в течение 14 дней.' \
-F 'logoFile=/public/logo.png' \
-F 'pageSize=A4'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/pdf-invoice-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| companyName | text | Да | — |
| companyInfo | textarea | Нет | — |
| customerName | text | Да | — |
| customerInfo | textarea | Нет | — |
| invoiceNumber | text | Да | — |
| invoiceDate | date | Нет | — |
| dueDate | date | Нет | — |
| currency | text | Нет | — |
| taxRate | number | Нет | — |
| lineItems | textarea | Да | — |
| notes | textarea | Нет | — |
| logoFile | fileнужна загрузка | Нет | — |
| pageSize | select | Нет | — |
Файловый результат
{
"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-invoice-generator": {
"name": "pdf-invoice-generator",
"description": "Создает брендированный PDF-счет из структурированных позиций",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-invoice-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": "pdf-invoice-generator",
"arguments": {
"companyName": "Nova Studio LLC",
"companyInfo": "123 Market Street\nSan Francisco, CA",
"customerName": "Atlas Ventures",
"customerInfo": "77 Mission Blvd\nSan Jose, CA",
"invoiceNumber": "INV-2026-0042",
"invoiceDate": "2026-02-05",
"dueDate": "2026-02-20",
"currency": "USD",
"taxRate": 7.5,
"lineItems": "[{\"description\":\"Design Sprint\",\"quantity\":3,\"unitPrice\":1200}]",
"notes": "Оплата в течение 14 дней.",
"logoFile": "/public/logo.png",
"pageSize": "A4"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]