Skip to main content
Glama

yuque_update_doc

Modify existing documents in Yuque knowledge bases by updating titles, content, or formats to maintain current information.

Instructions

Update an existing doc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdYesYuque doc ID.
repoIdNoYuque repository ID.
repoNamespaceNoYuque repository namespace.
titleNoOptional new title.
bodyNoOptional new body.
formatNoOptional new format.

Implementation Reference

  • The handler function that executes the yuque_update_doc tool logic.
    yuque_update_doc: async (args, client) => jsonText(await client.updateDoc(args.docId, args)),
  • The schema definition and registration for the yuque_update_doc tool.
    {
      name: "yuque_update_doc",
      description: "Update an existing doc.",
      inputSchema: {
        type: "object",
        properties: {
          docId: schemaProperty("number", "Yuque doc ID."),
          ...repoRefSchema(),
          title: schemaProperty("string", "Optional new title."),
          body: schemaProperty("string", "Optional new body."),
          format: schemaProperty("string", "Optional new format.", { enum: ["markdown", "lake", "html"] })
        },
        required: ["docId"]
      }
    },

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