Translator
TranslatorTranslator: Translator is a language translation API that translates plain text or HTML into target languages using standard language codes. Submit any string with a target language code to receive the translated text, both language names, and the confirmed or auto-detected source language. (Cost: 40 credits)
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": "<target>"
},
"name": "Translator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to translate | |
| format | No | text (default) or html. With html, markup and entities are kept and only the text between tags is translated | text |
| source | No | The language code of the text to translate (e.g., en). If left blank, language will be auto-detected | |
| target | Yes | The language code to translate the text to (e.g., fr, es, de) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |