Document Tools
Convierte datos tabulares en un PDF paginado con encabezados repetidos y filas zebra
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/pdf-table-layout-engine' \
-H 'Content-Type: application/json' \
-d '{"tableData":"[{\"Product\":\"Widget A\",\"Qty\":2,\"Price\":19.5,\"Total\":39},{\"Product\":\"Widget B\",\"Qty\":1,\"Price\":9.9,\"Total\":9.9}]","columns":"Product, Qty, Price, Total","title":"Quarterly Sales","subtitle":"Generated sample","pageSize":"A4","orientation":"landscape","fontSize":11,"margin":16,"repeatHeader":true,"zebraRows":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/pdf-table-layout-engine| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| tableData | textarea | Sí | — |
| columns | text | No | — |
| title | text | No | — |
| subtitle | text | No | — |
| pageSize | select | No | — |
| orientation |
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-pdf-table-layout-engine": {
"name": "pdf-table-layout-engine",
"description": "Convierte datos tabulares en un PDF paginado con encabezados repetidos y filas zebra",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-table-layout-engine",
"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": "pdf-table-layout-engine",
"arguments": {
"tableData": "[{\"Product\":\"Widget A\",\"Qty\":2,\"Price\":19.5,\"Total\":39},{\"Product\":\"Widget B\",\"Qty\":1,\"Price\":9.9,\"Total\":9.9}]",
"columns": "Product, Qty, Price, Total",
"title": "Quarterly Sales",
"subtitle": "Generated sample",
"pageSize": "A4",
"orientation": "landscape",
"fontSize": 11,
"margin": 16,
"repeatHeader": true,
"zebraRows": true
}
}
}| select |
| No |
| — |
| fontSize | number | No | — |
| margin | number | No | — |
| repeatHeader | checkbox | No | — |
| zebraRows | 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)"
}¿Dudas o problemas? Contacta con [email protected]