Document Tools
Bundle multiple Markdown files into a single PDF report
Call this tool from your code in three languages.
# 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/en/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'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/markdown-report-bundler| Name | Type | Required | Description |
|---|---|---|---|
| markdownFiles | fileupload required | Yes | — |
| reportTitle | text | No | — |
| includeToc | checkbox | No | — |
| includeFileHeaders | checkbox | No | — |
| addCoverPage | checkbox | No | — |
| theme | select | No | — |
| baseFontSize | number | No | — |
| pageSize | select | No | — |
| landscape | checkbox | No | — |
| printBackground | checkbox | No | — |
| marginTop | number | No | — |
| marginBottom | number | No | — |
| marginLeft | number | No | — |
| marginRight | number | No | — |
| waitUntil | select | No | — |
| waitTime | number | No | — |
File result
{
"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)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-markdown-report-bundler": {
"name": "markdown-report-bundler",
"description": "Bundle multiple Markdown files into a single PDF report",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=markdown-report-bundler",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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
}
}
}Questions or issues? Contact [email protected]