Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default | 
|---|---|---|---|
| DEBUG | No | Enable debug logging | false | 
| AWS_REGION | No | AWS region for Bedrock service | us-east-1 | 
| BATCH_SIZE | No | Number of texts to process in a batch | 20 | 
| MAX_TOKENS | No | Maximum tokens for translation requests | 4000 | 
| AWS_PROFILE | No | AWS profile to use | default | 
| FONT_KOREAN | No | Font to use for Korean text | 맑은 고딕 | 
| TEMPERATURE | No | Temperature setting for AI model | 0.1 | 
| FONT_CHINESE | No | Font to use for Chinese text | Microsoft YaHei | 
| FONT_DEFAULT | No | Default font to use | Arial | 
| FONT_ENGLISH | No | Font to use for English text | Amazon Ember | 
| FONT_JAPANESE | No | Font to use for Japanese text | Yu Gothic UI | 
| BEDROCK_MODEL_ID | No | Bedrock model ID for translation | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | 
| ENABLE_POLISHING | No | Enable translation polishing | true | 
| AWS_ACCESS_KEY_ID | No | AWS Access Key ID (optional if using AWS CLI configuration) | |
| CONTEXT_THRESHOLD | No | Number of texts to trigger context-aware translation | 5 | 
| AWS_DEFAULT_REGION | No | AWS default region (optional if using AWS CLI configuration) | |
| ENABLE_TEXT_AUTOFIT | No | Enable text autofit in post-processing | true | 
| AWS_SECRET_ACCESS_KEY | No | AWS Secret Access Key (optional if using AWS CLI configuration) | |
| TEXT_LENGTH_THRESHOLD | No | Text length threshold for post-processing | 10 | 
| DEFAULT_TARGET_LANGUAGE | No | Default target language for translation | ko | 
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
No prompts  | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
No resources  | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| translate_powerpoint | Translate a PowerPoint presentation to the specified language. Args: input_file: Path to the input PowerPoint file (.pptx) target_language: Target language code (e.g., 'ko', 'ja', 'es', 'fr', 'de') output_file: Path to save the translated file (optional, auto-generated if not provided) model_id: AWS Bedrock model ID to use for translation enable_polishing: Enable natural language polishing for more fluent translation Returns: Success message with translation details  | 
| translate_specific_slides | Translate specific slides in a PowerPoint presentation. Args: input_file: Path to the input PowerPoint file (.pptx) slide_numbers: Comma-separated slide numbers to translate (e.g., "1,3,5" or "2-4,7") target_language: Target language code (e.g., 'ko', 'ja', 'es', 'fr', 'de') output_file: Path to save the translated file (optional, auto-generated if not provided) model_id: AWS Bedrock model ID to use for translation enable_polishing: Enable natural language polishing for more fluent translation Returns: Success message with translation details  | 
| get_slide_info | Get information about slides in a PowerPoint presentation. Args: input_file: Path to the PowerPoint file (.pptx) Returns: Information about the presentation including slide count and preview of each slide  | 
| get_slide_preview | Get a detailed preview of a specific slide's content. Args: input_file: Path to the PowerPoint file (.pptx) slide_number: Slide number to preview (1-based indexing) Returns: Detailed preview of the slide content  | 
| list_supported_languages | List all supported target languages for translation. Returns: List of supported language codes and names  | 
| list_supported_models | List all supported AWS Bedrock models for translation. Returns: List of supported model IDs  | 
| get_translation_help | Get help information about using the PowerPoint translator. Returns: Help text with usage examples  | 
| post_process_powerpoint | Apply post-processing to a PowerPoint presentation to optimize text boxes. This function enables text wrapping and shrink text on overflow for text boxes that contain text longer than the specified threshold. Args: input_file: Path to the input PowerPoint file (.pptx) output_file: Path to save the processed file (optional, auto-generated if not provided) text_threshold: Text length threshold for enabling auto-fit (overrides .env setting) enable_autofit: Enable text auto-fitting (default: True) Returns: Success message with post-processing details  |