translate-document
Translate document files into a target language using the DeepL API. Specify input file and target language code; optionally set formality, glossary, and output format.
Instructions
Translate a document file using DeepL API
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') |