PDF → Markdown → Translate
pdf_to_markdown_then_translateConvert a public PDF URL to Markdown via MinerU, then translate the markdown via the public text API. Pass file_url (or files with exactly 1 PDF http(s) URL; path must end in .pdf) and required target_lang. Optional: source_lang (default auto), include_source_markdown (default true), wait_seconds (default 45, max 55). URL max 2048 chars. Returns markdown, translated_markdown, bilingual_markdown, task_id, target_lang. Cost: 2 credits per call (MinerU 1 + translate_text 1), charged by mcp-credit-gateway before forwarding. DOCX input is not supported this wave. Compliance: Use only on documents you own or are explicitly licensed/authorized to convert and translate. Do not upload or redistribute copyrighted material without permission. Output markdown is ephemeral and must not be abused for bulk scraping. Calls are rate-limited/metered by mcp-credit-gateway and require a valid sk_live_ key. (仅处理自有或已获授权文档;禁止滥用转换/翻译他人受版权保护材料;调用限频。)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target_lang": "<target_lang>"
},
"name": "pdf_to_markdown_then_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Alternative to `file_url`: exactly one public http(s) PDF URL. | |
| file_url | No | Public http(s) PDF URL (<= 2048 chars, path must end in .pdf). Provide either `file_url` or a single-element `files` array. | |
| source_lang | No | Optional source language code (default `auto`). | |
| target_lang | Yes | Target language code for translation (e.g. `zh`, `en`, `ja`). Required. | |
| wait_seconds | No | How long to wait for MinerU, 0–55 seconds (default 45). | |
| idempotency_key | No | Optional caller correlation key. Billing is handled by mcp-credit-gateway. | |
| include_source_markdown | No | When true (default), include original MinerU markdown in the result. |