Skip to main content
Glama

yuque_multipart_request

Upload files to Yuque knowledge base using multipart form-data for attachments and other upload workflows. Specify HTTP method, API path, parameters, and file details.

Instructions

Generic Yuque multipart request for upload-style endpoints such as attachment workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodNoHTTP method.
pathYesAPI path starting with /, for example /repos/123/resources.
paramsNoOptional query parameters.
fieldsNoOptional multipart text fields.
filesYesFiles to upload as multipart form-data.

Implementation Reference

  • The handler for 'yuque_multipart_request' calls 'client.multipartRequest(args)' and wraps the result in 'jsonText'.
    yuque_multipart_request: async (args, client) => jsonText(await client.multipartRequest(args)),
  • Definition of the 'yuque_multipart_request' tool including its input schema.
    {
      name: "yuque_multipart_request",
      description: "Generic Yuque multipart request for upload-style endpoints such as attachment workflows.",
      inputSchema: {
        type: "object",
        properties: {
          method: schemaProperty("string", "HTTP method.", { enum: ["POST", "PUT", "PATCH"] }),
          path: schemaProperty("string", "API path starting with /, for example /repos/123/resources."),
          params: {
            type: "object",
            description: "Optional query parameters."
          },
          fields: {
            type: "object",
            description: "Optional multipart text fields."
          },
          files: {
            type: "array",
            description: "Files to upload as multipart form-data.",
            items: {
              type: "object",
              properties: {
                fieldName: schemaProperty("string", "Multipart field name."),
                filePath: schemaProperty("string", "Absolute or workspace-local file path."),
                filename: schemaProperty("string", "Optional override filename."),
                contentType: schemaProperty("string", "Optional MIME type.")
              },
              required: ["fieldName", "filePath"]
            }
          }
        },
        required: ["path", "files"]
      }

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/MichealJou/yuque-mcp-plus'

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