{"functions":[{"name":"translate_document","description":"Translate a Word document between any pair of supported languages while preserving all formatting. Works for LTR-to-RTL, RTL-to-LTR, LTR-to-LTR, and RTL-to-RTL. RTL targets (Hebrew, Arabic, Persian, Urdu) automatically receive right-to-left layout. Returns a job_id - poll get_job_status until completed, then call download_translation.","parameters":{"type":"object","properties":{"file_bytes_b64":{"type":"string","description":"Base64-encoded document bytes (.docx, .doc, .odt, .rtf, max 50 MB)."},"filename":{"type":"string","description":"Original filename including extension (e.g. report.docx)."},"target_language":{"type":"string","description":"Target language name. Call list_languages() to get valid values."},"translation_mode":{"type":"string","enum":["professional","full","literal"],"default":"professional","description":"Translation quality mode: 'professional' (preserves technical terms), 'full' (immersive), 'literal' (word-for-word)."}},"required":["file_bytes_b64","filename","target_language"]}},{"name":"get_job_status","description":"Poll the status of a translation job. Returns status, target_lang, rtl_fidelity, and download_url when completed.","parameters":{"type":"object","properties":{"job_id":{"type":"string","description":"Job UUID returned by translate_document."}},"required":["job_id"]}},{"name":"download_translation","description":"Download the translated DOCX file for a completed job. Returns the file as base64-encoded bytes.","parameters":{"type":"object","properties":{"job_id":{"type":"string","description":"Job UUID of a completed translation job."}},"required":["job_id"]}}]}