bluente_download_file
Download translated documents in PDF, DOCX, or XLSX format after translation is complete. Retrieve files with original formatting preserved from the Bluente Translate service.
Instructions
Download the translated file once the task status is READY.
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": {
"id": "<id>"
},
"name": "bluente_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to_type | No | docx | |
| output_path | No |
Implementation Reference
- src/tools/download-file.tool.js:6-13 (handler)Handler function and tool registration for 'bluente_download_file'. It uses the provided client to perform the download.
export function registerDownloadFileTool(server, { client }) { server.tool( TOOL_NAME, "Download the translated file once the task status is READY.", downloadFileSchema, async ({ id, to_type: toType, output_path: outputPath }) => executeTool(TOOL_NAME, async () => client.downloadFile({ id, toType, outputPath })) ); - src/tools/schemas.js:32-36 (schema)Input schema validation for 'bluente_download_file' tool.
export const downloadFileSchema = { id: z.string().min(1), to_type: z.enum(["pdf", "docx", "xlsx"]).default("docx"), output_path: z.string().optional() };