Skip to main content
Glama

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
NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to source file.
engineNoTranslation engine option.LLM
glossaryNoEnable glossary matching: 0 or 1.

Implementation Reference

  • 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 }))
      );
  • 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.")
    };
  • 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 }))
      );
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bluente/bluente-translate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server