翻译文档
fanbei_translate_documentUpload a document via local path, public URL, or base64 and order translation; optionally auto-confirm credits and wait for completion.
Instructions
上传一个文档并下单翻译。文件来源三选一:file_path(本地路径,stdio 模式用)、file_url(公网直链)、file_base64(≤50MB,远程模式用)。auto_confirm=True 会立刻扣积分并开始翻译;False 只上传返回 tranId。wait_seconds>0 会同步等待到完成或超时(超时仍可用 fanbei_task_status 继续查)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fanbei_translate_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| engine | No | BAIDU | |
| file_url | No | ||
| filename | No | ||
| bilingual | No | ||
| file_path | No | ||
| file_base64 | No | ||
| source_lang | No | 1 | |
| target_lang | No | 2 | |
| auto_confirm | No | ||
| wait_seconds | No |