Text Processing
Convert various text formats to CSV with customizable parsing options
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/text-to-csv' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Enter your text data to convert to CSV:\nName,Age,City\nJohn,25,New York\nJane,30,London\n\nOr paste tab-separated data, JSON, or other formats...","inputFormat":"auto","delimiter":"Enter delimiter character (e.g., |, ;, \\t)","includeHeader":true,"quoteMode":"auto","lineEnding":"crlf","previewRows":"10","showStats":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-csv| Nom | Type | Requis | Description |
|---|---|---|---|
| textInput | textarea | Oui | — |
| inputFormat | select | Oui | — |
| delimiter | text | Non | — |
| includeHeader | checkbox | Non | — |
| quoteMode | select | Oui | — |
| lineEnding |
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-csv": {
"name": "text-to-csv",
"description": "Convert various text formats to CSV with customizable parsing options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-to-csv",
"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-csv",
"arguments": {
"textInput": "Enter your text data to convert to CSV:\nName,Age,City\nJohn,25,New York\nJane,30,London\n\nOr paste tab-separated data, JSON, or other formats...",
"inputFormat": "auto",
"delimiter": "Enter delimiter character (e.g., |, ;, \\t)",
"includeHeader": true,
"quoteMode": "auto",
"lineEnding": "crlf",
"previewRows": "10",
"showStats": true
}
}
}| select |
| Oui |
| — |
| previewRows | number | Non | — |
| showStats | checkbox | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]