AI Tools
Translate text between multiple languages using AI
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/prompt-translator' \
-H 'Content-Type: application/json' \
-d '{"textarea":"Enter your text here...","targetLanguage":"en"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/prompt-translator| Name | Type | Required | Description |
|---|---|---|---|
| textarea | textarea | Yes | Enter the text you want to translate (max 5000 characters) |
| targetLanguage | select | Yes | Select the language to translate to |
Stream result
data: {"chunk": "data: processed content 1", "type": "stream"}
data: {"chunk": "data: processed content 2", "type": "stream"}
data: {"type": "done"}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-prompt-translator": {
"name": "prompt-translator",
"description": "Translate text between multiple languages using AI",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=prompt-translator",
"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": "prompt-translator",
"arguments": {
"textarea": "Enter your text here...",
"targetLanguage": "en"
}
}
}Questions or issues? Contact [email protected]