bluente_upload_file
Upload documents for translation while preserving formatting. Choose translation engines and glossary options to process files.
Instructions
Upload a source document to Bluente and get a translation task id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or relative path to source file. | |
| engine | No | Translation engine option. | LLM |
| glossary | No | Enable glossary matching: 0 or 1. |
Implementation Reference
- src/tools/upload-file.tool.js:6-13 (handler)The handler for `bluente_upload_file`, which utilizes the client's `uploadFile` method.
export function registerUploadFileTool(server, { client }) { server.tool( TOOL_NAME, "Upload a source document to Bluente and get a translation task id.", uploadFileSchema, async ({ file_path: filePath, engine, glossary }) => executeTool(TOOL_NAME, async () => client.uploadFile({ filePath, engine, glossary })) ); - src/tools/schemas.js:6-10 (schema)Zod schema definition for `bluente_upload_file` tool inputs.
export const uploadFileSchema = { file_path: z.string().min(1).describe("Absolute or relative path to source file."), engine: engineSchema.describe("Translation engine option."), glossary: binaryFlagSchema.default(0).describe("Enable glossary matching: 0 or 1.") }; - src/tools/upload-file.tool.js:6-14 (registration)Registration function for `bluente_upload_file`.
export function registerUploadFileTool(server, { client }) { server.tool( TOOL_NAME, "Upload a source document to Bluente and get a translation task id.", uploadFileSchema, async ({ file_path: filePath, engine, glossary }) => executeTool(TOOL_NAME, async () => client.uploadFile({ filePath, engine, glossary })) ); }