Document Tools
Layout von Chat-Transkripten als PDF
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/chat-transcript-to-pdf' \
-F 'file=@/path/to/transcriptFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/chat-transcript-to-pdf' \
-F 'transcriptJson={"messages":[{"role":"user","content":"Status update?"},{"role":"assistant","content":"Deployment complete."}]}' \
-F 'transcriptFile=/path/to/file.ext' \
-F 'title=Ops Chat' \
-F 'showTimestamps=false' \
-F 'accentColor=#2a5d6f' \
-F 'userBubbleColor=#d5e8f1' \
-F 'assistantBubbleColor=#f3e6d2' \
-F 'systemBubbleColor=#efefef' \
-F 'baseFontSize=12' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'printBackground=true' \
-F 'marginTop=16' \
-F 'marginBottom=18' \
-F 'marginLeft=16' \
-F 'marginRight=16' \
-F 'waitUntil=networkidle0' \
-F 'waitTime=0'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/chat-transcript-to-pdf| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| transcriptJson | textarea | Nein | — |
| transcriptFile | fileUpload nötig | Nein | — |
| title | text | Nein | — |
| showTimestamps | checkbox | Nein | — |
| accentColor | color | Nein | — |
| userBubbleColor | color | Nein | — |
| assistantBubbleColor | color | Nein | — |
| systemBubbleColor | color | Nein | — |
| baseFontSize | number | Nein | — |
| pageSize | select | Nein | — |
| landscape | checkbox | Nein | — |
| printBackground | checkbox | Nein | — |
| marginTop | number | Nein | — |
| marginBottom | number | Nein | — |
| marginLeft | number | Nein | — |
| marginRight | number | Nein | — |
| waitUntil | select | Nein | — |
| waitTime | 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-chat-transcript-to-pdf": {
"name": "chat-transcript-to-pdf",
"description": "Layout von Chat-Transkripten als PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=chat-transcript-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": "chat-transcript-to-pdf",
"arguments": {
"transcriptJson": "{\"messages\":[{\"role\":\"user\",\"content\":\"Status update?\"},{\"role\":\"assistant\",\"content\":\"Deployment complete.\"}]}",
"transcriptFile": "https://example.com/file.ext",
"title": "Ops Chat",
"showTimestamps": false,
"accentColor": "#2a5d6f",
"userBubbleColor": "#d5e8f1",
"assistantBubbleColor": "#f3e6d2",
"systemBubbleColor": "#efefef",
"baseFontSize": 12,
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"marginTop": 16,
"marginBottom": 18,
"marginLeft": 16,
"marginRight": 16,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}Fragen oder Probleme? Kontakt: [email protected]