translate-document
Translate a document file into another language with DeepL. Specify the input file and target language code to generate a translated document, with optional style and glossary settings.
Instructions
Translate a document file using DeepL API
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": {
"inputFile": "<inputFile>",
"targetLangCode": "<targetLangCode>"
},
"name": "translate-document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styleId | No | Style rule ID to apply. Use the list-style-rules tool to discover available style rules. | |
| formality | No | Controls whether translations should lean toward informal or formal language | |
| inputFile | Yes | Path to the input document file to translate | |
| glossaryId | No | ID of glossary to use for translation | |
| outputFile | No | Path where the translated document will be saved (if not provided, will be auto-generated) | |
| outputFormat | No | Desired output file format (e.g. 'pdf'), or leave empty to keep the input format. Only some conversions are supported. | |
| sourceLangCode | No | source language code, in standard ISO-639-1 format (e.g. 'en', 'de', 'fr'), or leave empty for auto-detection | |
| targetLangCode | Yes | target language code, in standard ISO-639-1 format (e.g. 'en-US', 'de', 'fr') |