translate_pdf
Translate PDF files while preserving formulas, charts, and layout. Outputs both translated-only and bilingual side-by-side PDFs.
Instructions
Translate a PDF file while preserving formulas and layout.
Args:
file: Path to the input PDF file. Absolute paths are used
as-is; relative paths are resolved against the shared
workspace directory (~/.featherflow/workspace by default,
overridable via WORKSPACE_DIR env var).
lang_in: Source language code (e.g. "en", "auto" for auto-detect).
lang_out: Target language code (e.g. "zh", "ja", "ko", "fr", "de").
output_dir: Directory for output files. Defaults to the shared
workspace directory so that other MCP tools
(e.g. feishu-mcp upload_file) can access the outputs.
Returns:
A summary with absolute paths to the mono (translated-only) and
dual (bilingual side-by-side) output PDF files. These paths
can be passed directly to feishu-mcp upload_file / upload_file_and_share.
Environment variables that control the LLM used for translation:
OPENAI_BASE_URL – API base URL
OPENAI_API_KEY – API key
OPENAI_MODEL – Model name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| lang_in | Yes | ||
| lang_out | Yes | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |