Format Conversion
Traite des xlsx en stockage objet par lot
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/xlsx-s3-batch-processor' \
-H 'Content-Type: application/json' \
-d '{"endpoint":"https://s3.amazonaws.com","region":"us-east-1","bucket":"my-data-bucket","accessKeyId":"","secretAccessKey":"","sessionToken":"","objectKeys":"input/a.xlsx\ninput/b.xlsx","sheetName":"Sheet1","headerRow":1,"filterColumn":"status","filterOperator":"equals","filterValue":"paid","outputFormat":"xlsx","csvDelimiter":",","trimWhitespace":true,"removeEmptyRows":true,"uploadBack":false,"outputPrefix":"processed/"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/xlsx-s3-batch-processor| Nom | Type | Requis | Description |
|---|---|---|---|
| endpoint | text | Non | — |
| region | text | Non | — |
| bucket | text | Oui | — |
| accessKeyId | text | Oui | — |
| secretAccessKey | text | Oui | — |
| sessionToken |
| text |
| Non |
| — |
| objectKeys | textarea | Oui | — |
| sheetName | text | Non | — |
| headerRow | number | Non | — |
| filterColumn | text | Non | — |
| filterOperator | select | Non | — |
| filterValue | text | Non | — |
| outputFormat | select | Non | — |
| csvDelimiter | text | Non | — |
| trimWhitespace | checkbox | Non | — |
| removeEmptyRows | checkbox | Non | — |
| uploadBack | checkbox | Non | — |
| outputPrefix | text | 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-s3-batch-processor": {
"name": "xlsx-s3-batch-processor",
"description": "Traite des xlsx en stockage objet par lot",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xlsx-s3-batch-processor",
"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-s3-batch-processor",
"arguments": {
"endpoint": "https://s3.amazonaws.com",
"region": "us-east-1",
"bucket": "my-data-bucket",
"accessKeyId": "",
"secretAccessKey": "",
"sessionToken": "",
"objectKeys": "input/a.xlsx\ninput/b.xlsx",
"sheetName": "Sheet1",
"headerRow": 1,
"filterColumn": "status",
"filterOperator": "equals",
"filterValue": "paid",
"outputFormat": "xlsx",
"csvDelimiter": ",",
"trimWhitespace": true,
"removeEmptyRows": true,
"uploadBack": false,
"outputPrefix": "processed/"
}
}
}Des questions ou un problème ? Contactez [email protected]