Format Conversion
Renderiza Excel como tabela HTML para web
Chame esta ferramenta a partir do seu código em três idiomas.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/xlsx-html-table-preview' \
-F 'file=@/path/to/excelFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/pt/api/tools/xlsx-html-table-preview' \
-F 'excelFile=/public/samples/xlsx/workbook-sales.xlsx' \
-F 'sheetName=Sheet1' \
-F 'range=A1:E20' \
-F 'headerRow=1' \
-F 'includeStyles=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/xlsx-html-table-preview| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| excelFile | fileupload necessário | Sim | — |
| sheetName | text | Não | — |
| range | text | Não | — |
| headerRow | number | Não | — |
| includeStyles | checkbox | Não | — |
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-xlsx-html-table-preview": {
"name": "xlsx-html-table-preview",
"description": "Renderiza Excel como tabela HTML para web",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-html-table-preview",
"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": "xlsx-html-table-preview",
"arguments": {
"excelFile": "/public/samples/xlsx/workbook-sales.xlsx",
"sheetName": "Sheet1",
"range": "A1:E20",
"headerRow": 1,
"includeStyles": true
}
}
}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)"
}Dúvidas ou problemas? Contate [email protected]