Text Processing
Convert various text formats to CSV with customizable parsing options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/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}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/text-to-csv| Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | — |
| inputFormat | select | Yes | — |
| delimiter | text | No | — |
| includeHeader | checkbox | No | — |
| quoteMode | select | Yes | — |
| lineEnding |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"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"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"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
}
}
}Questions or issues? Contact [email protected]
| select |
| Yes |
| — |
| previewRows | number | No | — |
| showStats | checkbox | No | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}