Translate
translateConverts text between Tunisian Derja and English, French, or Modern Standard Arabic in both directions, with optional cost limits.
Instructions
Translate between Tunisian Derja and English, French, or Modern Standard Arabic (in both directions). Call list_translation_languages for the exact target names. Costs money per character.
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": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| source | No | Source language. Usually auto-detected. | |
| target | Yes | Target language, e.g. "Derja", "French", "English", "MSA". | |
| max_cost_tnd | No | Refuse to run if the estimated cost is above this many TND. Defaults to TAPRA_MAX_COST_TND when set. |