Document Tools
Convierte presentaciones a PDF y soporta varias diapositivas por pagina
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/libreoffice-ppt-to-pdf-handouts' \
-H 'Content-Type: application/json' \
-d '{"filename":"sourceFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/es/api/tools/libreoffice-ppt-to-pdf-handouts' \
-F 'sourceFile=/Users/quyue/www/elysia-tools/public/samples/ppt/business.pptx' \
-F 'slidesPerPage=4' \
-F 'pageSize=A4' \
-F 'orientation=portrait' \
-F 'margin=28' \
-F 'gap=10' \
-F 'drawFrame=true'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/libreoffice-ppt-to-pdf-handouts| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| sourceFile | filesubida requerida | Sí | — |
| slidesPerPage | select | No | — |
| pageSize | select | No | — |
| orientation | select | No | — |
| margin | number | No | — |
| gap | number | No | — |
| drawFrame | checkbox | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-libreoffice-ppt-to-pdf-handouts": {
"name": "libreoffice-ppt-to-pdf-handouts",
"description": "Convierte presentaciones a PDF y soporta varias diapositivas por pagina",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=libreoffice-ppt-to-pdf-handouts",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "libreoffice-ppt-to-pdf-handouts",
"arguments": {
"sourceFile": "/Users/quyue/www/elysia-tools/public/samples/ppt/business.pptx",
"slidesPerPage": "4",
"pageSize": "A4",
"orientation": "portrait",
"margin": 28,
"gap": 10,
"drawFrame": true
}
}
}¿Dudas o problemas? Contacta con [email protected]