translate-text
Convert text into a target language using the DeepL API. Specify the language code and optionally adjust formality for translations. Designed for integration with AI assistants.
Instructions
Translate text to a target language using DeepL API
Input Schema
Name | Required | Description | Default |
---|---|---|---|
formality | No | Controls whether translations should lean toward informal or formal language | |
targetLang | Yes | Target language code (e.g. 'en-US', 'de', 'fr') | |
text | Yes | Text to translate |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"formality": {
"description": "Controls whether translations should lean toward informal or formal language",
"enum": [
"less",
"more",
"default",
"prefer_less",
"prefer_more"
],
"type": "string"
},
"targetLang": {
"description": "Target language code (e.g. 'en-US', 'de', 'fr')",
"type": "string"
},
"text": {
"description": "Text to translate",
"type": "string"
}
},
"required": [
"text",
"targetLang"
],
"type": "object"
}