Translate
translateTranslate content into another language, using the tenant's translation cache (a cached translation costs nothing). Either pass free text, or entity_type+entity_id+field of a stored record (page|news|event|knowledge|document) to translate and cache that field. Never translates ids, e-mails, urls or phone numbers.
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_lang": "<target_lang>"
},
"name": "translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Free text to translate (use this OR entity_type+entity_id+field) | |
| field | No | Field name of the record, e.g. title, excerpt, content_json | |
| entity_id | No | ||
| entity_type | No | page|news|event|knowledge|document | |
| source_lang | No | Optional source language code; translation is skipped when it equals target_lang | |
| target_lang | Yes | Target language code, e.g. en, fr, es, pt | |
| target_tenant_id | No | Platform super-admins only: operate on this tenant instead of your own. |