Skip to main content
Glama

yuque_move_document

Move documents or table of contents nodes within Yuque knowledge bases by specifying source and target UUIDs to reorganize content hierarchies.

Instructions

Move a doc or TOC node to another parent by UUID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdNoDoc ID. Used to resolve nodeUuid if nodeUuid is omitted.
nodeUuidNoExisting TOC node UUID.
repoIdNoYuque repository ID.
repoNamespaceNoYuque repository namespace.
parentUuidNoTarget parent UUID.
targetUuidNoAlias of parentUuid.
actionModeNoTOC action mode.
positionNoInsert position.

Implementation Reference

  • Handler function for yuque_move_document tool.
    yuque_move_document: async (args, client) => jsonText(await client.moveDocument(args)),
  • Schema definition for yuque_move_document tool.
      name: "yuque_move_document",
      description: "Move a doc or TOC node to another parent by UUID.",
      inputSchema: {
        type: "object",
        properties: {
          docId: schemaProperty("number", "Doc ID. Used to resolve nodeUuid if nodeUuid is omitted."),
          nodeUuid: schemaProperty("string", "Existing TOC node UUID."),
          ...repoRefSchema(),
          parentUuid: schemaProperty("string", "Target parent UUID."),
          targetUuid: schemaProperty("string", "Alias of parentUuid."),
          actionMode: schemaProperty("string", "TOC action mode.", { enum: ["child", "sibling"] }),
          position: schemaProperty("string", "Insert position.", { enum: ["append", "prepend"] })
        }
      }
    },

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