translate_text
Translate text between languages using source and target language codes to convert content for multilingual communication.
Instructions
Translate text from one language to another.
⚠️ COST WARNING: This tool makes an API call to Whissle which may incur costs. Only use when explicitly requested by the user.
Args:
text (str): The text to translate
source_language (str): Source language code (e.g., "en" for English)
target_language (str): Target language code (e.g., "es" for Spanish)
Returns:
TextContent with the translated text.
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>",
"source_language": "<source_language>",
"target_language": "<target_language>"
},
"name": "translate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| source_language | Yes | ||
| target_language | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| type | Yes | ||
| _meta | No | ||
| annotations | No |