Skip to main content
Glama

text_translation

Translate text files between languages. Convert TXT and SRT files to your target language with automatic source detection. Supports multiple languages with file size up to 10MB.

Instructions

[AllVoiceLab Tool] Translate text from a file to another language.

This tool translates text content from a file to a specified target language. The process runs asynchronously with status polling and returns the translated text when complete. Args: file_path: Path to the text file to translate. Only TXT and SRT formats are supported. Maximum file size: 10MB. target_lang: Target language code for translation (e.g., 'zh', 'en', 'ja', 'fr', 'de', 'ko'). Required. source_lang: Source language code of the original content. Set to 'auto' for automatic language detection. Default is 'auto'. output_dir: Output directory for the downloaded result file. Default is user's desktop. Returns: TextContent containing the file path to the translated file or error message. If the process takes longer than expected, returns the project ID for later status checking. Limitations: - Only TXT and SRT formats are supported - Maximum file size: 10MB - File must exist and be accessible - Currently supports a limited set of languages for translation

Input Schema

NameRequiredDescriptionDefault
file_pathYes
target_langYes
source_langNoauto
output_dirNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "title": "File Path", "type": "string" }, "output_dir": { "default": null, "title": "Output Dir", "type": "string" }, "source_lang": { "default": "auto", "title": "Source Lang", "type": "string" }, "target_lang": { "title": "Target Lang", "type": "string" } }, "required": [ "file_path", "target_lang" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/allvoicelab/AllVoiceLab-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server