Format Conversion
Preenche placeholders em templates Excel
Chame esta ferramenta a partir do seu código em três idiomas.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/xlsx-template-filler' \
-H 'Content-Type: application/json' \
-d '{"filename":"templateFile.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/pt/api/tools/xlsx-template-filler' \
-F 'templateFile=/public/samples/xlsx/xlsx-template-filler-template.xlsx' \
-F 'variablesJson={
"title": "Sales Summary",
"report_date": "2026-03-05",
"customer": {
"name": "Elysia Labs"
},
"total_amount": 12850.75
}' \
-F 'strictMode=false'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-template-filler| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| templateFile | fileupload necessário | Sim | — |
| variablesJson | textarea | Sim | — |
| strictMode | 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-xlsx-template-filler": {
"name": "xlsx-template-filler",
"description": "Preenche placeholders em templates Excel",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-template-filler",
"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-template-filler",
"arguments": {
"templateFile": "/public/samples/xlsx/xlsx-template-filler-template.xlsx",
"variablesJson": "{\n \"title\": \"Sales Summary\",\n \"report_date\": \"2026-03-05\",\n \"customer\": {\n \"name\": \"Elysia Labs\"\n },\n \"total_amount\": 12850.75\n}",
"strictMode": false
}
}
}Dúvidas ou problemas? Contate [email protected]