Format Conversion
Convert various text formats to Excel with customizable parsing and formatting options
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'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/text-to-excel| Nom | Type | Requis | Description |
|---|---|---|---|
| textInput | textarea | Oui | — |
| inputFormat | select | Oui | — |
| delimiter | text | Non | — |
| hasHeader | checkbox | Non | — |
| trimValues | checkbox | Non | — |
| skipEmptyLines |
| checkbox |
| Non |
| — |
| sheetName | text | Non | — |
| autoFilter | checkbox | Non | — |
| freezeHeaderRow | checkbox | Non | — |
| autoColumnWidth | checkbox | Non | — |
| multipleSheets | checkbox | Non | — |
| createSummary | checkbox | Non | — |
| includeStats | 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-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"
}
}
}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": "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
}
}
}Des questions ou un problème ? Contactez [email protected]