translate_text
Translates a single text string or a batch of up to 50 strings into a target language across 277 languages, using lingua.direct API v2 with automatic or specified source.
Instructions
Translate one text string or a batch of up to 50 strings across 277 languages using lingua.direct API v2.
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": {
"target": "<target>"
},
"name": "translate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Single text to translate (use either text or texts). | |
| texts | No | Batch of up to 50 texts to translate (max 20,000 total chars). | |
| source | No | Source language code (e.g. "en", "nl") or "auto". | auto |
| target | Yes | Target language code (e.g. "nl", "es", "de"). |