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
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method. | |
| path | Yes | API path starting with /, for example /repos/123/resources. | |
| params | No | Optional query parameters. | |
| fields | No | Optional multipart text fields. | |
| files | Yes | Files to upload as multipart form-data. |
Implementation Reference
- src/tools.js:431-431 (handler)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)), - src/tools.js:52-84 (schema)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"] }