Document Tools
Объединяет несколько Markdown-файлов в один PDF-отчет
Вызовите этот инструмент из своего кода на трёх языках.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/markdown-report-bundler' \
-F 'file=@/path/to/markdownFiles.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/ru/api/tools/markdown-report-bundler' \
-F 'markdownFiles=/Users/quyue/www/elysia-tools/public/processing/pdf_report_part_1.md,/Users/quyue/www/elysia-tools/public/processing/pdf_report_part_2.md' \
-F 'reportTitle=Q1 Bundled Report' \
-F 'includeToc=true' \
-F 'includeFileHeaders=true' \
-F 'addCoverPage=true' \
-F 'theme=print' \
-F 'baseFontSize=13' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'printBackground=true' \
-F 'marginTop=18' \
-F 'marginBottom=18' \
-F 'marginLeft=16' \
-F 'marginRight=16' \
-F 'waitUntil=networkidle0' \
-F 'waitTime=0'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/markdown-report-bundler| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| markdownFiles | fileнужна загрузка | Да | — |
| reportTitle | text | Нет | — |
| includeToc | checkbox | Нет | — |
| includeFileHeaders | checkbox | Нет | — |
| addCoverPage | checkbox | Нет | — |
| theme | select | Нет | — |
| baseFontSize | number | Нет | — |
| pageSize | select | Нет | — |
| landscape | checkbox | Нет | — |
| printBackground | checkbox | Нет | — |
| marginTop | number | Нет | — |
| marginBottom | number | Нет | — |
| marginLeft | number | Нет | — |
| marginRight | number | Нет | — |
| 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-markdown-report-bundler": {
"name": "markdown-report-bundler",
"description": "Объединяет несколько Markdown-файлов в один PDF-отчет",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=markdown-report-bundler",
"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": "markdown-report-bundler",
"arguments": {
"markdownFiles": [
"/Users/quyue/www/elysia-tools/public/processing/pdf_report_part_1.md",
"/Users/quyue/www/elysia-tools/public/processing/pdf_report_part_2.md"
],
"reportTitle": "Q1 Bundled Report",
"includeToc": true,
"includeFileHeaders": true,
"addCoverPage": true,
"theme": "print",
"baseFontSize": 13,
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"marginTop": 18,
"marginBottom": 18,
"marginLeft": 16,
"marginRight": 16,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]