Skip to main content
Glama

yuque_create_doc

Create documents in Yuque knowledge bases with optional parent directory attachment for organized content management.

Instructions

Create a doc. If parentUuid is provided, the doc is attached under that TOC node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoIdNoYuque repository ID.
repoNamespaceNoYuque repository namespace.
titleYesDoc title.
bodyNoMarkdown or lake body.
formatNoDoc format.
slugNoOptional slug.
parentUuidNoOptional TOC parent UUID.

Implementation Reference

  • Handler for yuque_create_doc that calls client.createDoc.
    yuque_create_doc: async (args, client) => jsonText(await client.createDoc(args)),
  • Registration and schema for yuque_create_doc.
    name: "yuque_create_doc",
    description: "Create a doc. If parentUuid is provided, the doc is attached under that TOC node.",
    inputSchema: {
      type: "object",
      properties: {
        ...repoRefSchema(),
        title: schemaProperty("string", "Doc title.", { minLength: 1 }),
        body: schemaProperty("string", "Markdown or lake body."),
        format: schemaProperty("string", "Doc format.", { enum: ["markdown", "lake", "html"] }),
        slug: schemaProperty("string", "Optional slug."),
        parentUuid: schemaProperty("string", "Optional TOC parent UUID.")
      },
      required: ["title"]
    }

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