ai_translate
Translate text to a target language using ISO 639-1 codes. Optionally detect source language or provide context hints for accurate translations.
Instructions
Translate text to a target language. Requires service key and active AI Translation add-on. Supports optional source language and context hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID | |
| text | Yes | Text to translate (max 10,000 characters) | |
| to | Yes | Target language (ISO 639-1 code, e.g. 'es', 'ja', 'fr') | |
| from | No | Source language (ISO 639-1 code). Auto-detected if omitted | |
| context | No | Context hint for tone/register (max 200 chars, e.g. 'formal business email') |