Document Tools
Rendert E-Mail-HTML zu PDF und erhalt die grundlegende Formatierung
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/libreoffice-html-mail-to-pdf' \
-F 'file=@/path/to/htmlFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/libreoffice-html-mail-to-pdf' \
-F 'mailHtml=<h2 style='color:#0f172a'>Q1 Product Update</h2><p>Hello team,</p><p>We shipped 3 major features this quarter.</p><table><tr><th>Area</th><th>Status</th></tr><tr><td>Platform</td><td>Stable</td></tr><tr><td>Growth</td><td>+18%</td></tr></table><p>Regards,<br/>Product Ops</p>' \
-F 'htmlFile=/path/to/file.ext' \
-F 'subject=Quarterly Product Update' \
-F '[email protected]' \
-F '[email protected]' \
-F 'date=2026-02-16 10:00' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'marginMm=12'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/libreoffice-html-mail-to-pdf| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| mailHtml | textarea | Nein | — |
| htmlFile | fileUpload nötig | Nein | — |
| subject | text | Nein | — |
| from | text | Nein | — |
| to | text | Nein | — |
| date | text | Nein | — |
| pageSize | select | Nein | — |
| landscape | checkbox | Nein | — |
| marginMm | number | Nein | — |
Dateiergebnis
{
"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)"
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-libreoffice-html-mail-to-pdf": {
"name": "libreoffice-html-mail-to-pdf",
"description": "Rendert E-Mail-HTML zu PDF und erhalt die grundlegende Formatierung",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=libreoffice-html-mail-to-pdf",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "libreoffice-html-mail-to-pdf",
"arguments": {
"mailHtml": "<h2 style='color:#0f172a'>Q1 Product Update</h2><p>Hello team,</p><p>We shipped 3 major features this quarter.</p><table><tr><th>Area</th><th>Status</th></tr><tr><td>Platform</td><td>Stable</td></tr><tr><td>Growth</td><td>+18%</td></tr></table><p>Regards,<br/>Product Ops</p>",
"htmlFile": "https://example.com/file.ext",
"subject": "Quarterly Product Update",
"from": "[email protected]",
"to": "[email protected]",
"date": "2026-02-16 10:00",
"pageSize": "A4",
"landscape": false,
"marginMm": 12
}
}
}Fragen oder Probleme? Kontakt: [email protected]