Format Conversion
Conversion en lot CSV/TSV et XLSX avec gestion encodage/separateur
Appelez cet outil depuis votre code en trois langages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'http://127.0.0.1:3003/api/upload/presign/xlsx-csv-batch-converter' \
-H 'Content-Type: application/json' \
-d '{"filename":"sourceFiles.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 'http://127.0.0.1:3003/fr/api/tools/xlsx-csv-batch-converter' \
-F 'sourceFiles=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'mode=auto' \
-F 'sourceEncoding=auto' \
-F 'outputEncoding=utf-8-bom' \
-F 'inputDelimiter=auto' \
-F 'outputDelimiter=,' \
-F 'sheetName=Sheet1' \
-F 'includeHeader=true' \
-F 'alwaysZip=true'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST http://127.0.0.1:3003/fr/api/tools/xlsx-csv-batch-converter| Nom | Type | Requis | Description |
|---|---|---|---|
| sourceFiles | fileupload requis | Oui | — |
| mode | select | Oui | — |
| sourceEncoding | select | Non | — |
| outputEncoding | select | Non | — |
| inputDelimiter | select | Non | — |
| outputDelimiter | select | Non | — |
| sheetName | text | Non | — |
| includeHeader | checkbox | Non | — |
| alwaysZip | checkbox | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-xlsx-csv-batch-converter": {
"name": "xlsx-csv-batch-converter",
"description": "Conversion en lot CSV/TSV et XLSX avec gestion encodage/separateur",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=xlsx-csv-batch-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "xlsx-csv-batch-converter",
"arguments": {
"sourceFiles": "https://example.com/file.ext",
"mode": "auto",
"sourceEncoding": "auto",
"outputEncoding": "utf-8-bom",
"inputDelimiter": "auto",
"outputDelimiter": ",",
"sheetName": "Sheet1",
"includeHeader": true,
"alwaysZip": true
}
}
}Des questions ou un problème ? Contactez [email protected]