Format Conversion
Convert various text formats to Excel with customizable parsing and formatting options
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/text-to-excel' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter your text data to convert to Excel:\nname,age,city\nJohn,25,New York\nJane,30,London\n\nOr paste JSON, key-value pairs, or other formats...","inputFormat":"auto","delimiter":"Custom delimiter (e.g., |, ;, \\t)","hasHeader":true,"trimValues":true,"skipEmptyLines":true,"sheetName":"Data","autoFilter":true,"freezeHeaderRow":true,"autoColumnWidth":true,"multipleSheets":false,"createSummary":false,"includeStats":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/text-to-excel| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| textInput | textarea | Sí | — |
| inputFormat | select | Sí | — |
| delimiter | text | No | — |
| hasHeader | checkbox | No | — |
| trimValues | checkbox | No | — |
| skipEmptyLines | checkbox | No | — |
| sheetName | text | No | — |
| autoFilter | checkbox | No | — |
| freezeHeaderRow | checkbox | No | — |
| autoColumnWidth | checkbox | No | — |
| multipleSheets | checkbox | No | — |
| createSummary | checkbox | No | — |
| includeStats | 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-text-to-excel": {
"name": "text-to-excel",
"description": "Convert various text formats to Excel with customizable parsing and formatting options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-to-excel",
"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": "text-to-excel",
"arguments": {
"textInput": "Enter your text data to convert to Excel:\nname,age,city\nJohn,25,New York\nJane,30,London\n\nOr paste JSON, key-value pairs, or other formats...",
"inputFormat": "auto",
"delimiter": "Custom delimiter (e.g., |, ;, \\t)",
"hasHeader": true,
"trimValues": true,
"skipEmptyLines": true,
"sheetName": "Data",
"autoFilter": true,
"freezeHeaderRow": true,
"autoColumnWidth": true,
"multipleSheets": false,
"createSummary": false,
"includeStats": true
}
}
}¿Dudas o problemas? Contacta con [email protected]