Format Conversion
Convert various text formats to Excel with customizable parsing and formatting options
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/text-to-excel| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| textInput | textarea | Sim | — |
| inputFormat | select | Sim | — |
| delimiter | text | Não | — |
| hasHeader | checkbox | Não | — |
| trimValues | checkbox | Não | — |
| skipEmptyLines | checkbox | Não | — |
| sheetName | text | Não | — |
| autoFilter | checkbox | Não | — |
| freezeHeaderRow | checkbox | Não | — |
| autoColumnWidth | checkbox | Não | — |
| multipleSheets | checkbox | Não | — |
| createSummary | checkbox | Não | — |
| includeStats | checkbox | Não | — |
Resultado de arquivo
{
"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)"
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu 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"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus 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
}
}
}Dúvidas ou problemas? Contate [email protected]