translate_text
Translates a given text into a target language using MyMemory, with optional context to improve accuracy. Use it to localize individual strings without an API key.
Instructions
Translate a specific text to a target language using MyMemory API (free, no API key required)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"target_language": "<target_language>"
},
"name": "translate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to translate | |
| context | No | Optional: Context for better translation (e.g., "Button label", "Error message") | |
| target_language | Yes | Target language code (e.g., "es", "fr") |