Skip to main content
Glama

yuque_create_toc_node

Add title or link nodes to Yuque repository table of contents by specifying parent nodes, position, and type for organizing knowledge base structure.

Instructions

Create a TITLE or LINK node in the repository TOC tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoIdNoYuque repository ID.
repoNamespaceNoYuque repository namespace.
titleYesNode title.
nodeTypeNoNode type.
urlNoOptional URL when nodeType is LINK.
parentUuidNoTarget parent UUID.
targetUuidNoAlias of parentUuid.
actionModeNoTOC action mode.
positionNoInsert position.

Implementation Reference

  • The handler for 'yuque_create_toc_node' which calls client.createTocNode(args).
    yuque_create_toc_node: async (args, client) => jsonText(await client.createTocNode(args)),
  • src/tools.js:213-230 (registration)
    The schema and registration definition for 'yuque_create_toc_node'.
    {
      name: "yuque_create_toc_node",
      description: "Create a TITLE or LINK node in the repository TOC tree.",
      inputSchema: {
        type: "object",
        properties: {
          ...repoRefSchema(),
          title: schemaProperty("string", "Node title.", { minLength: 1 }),
          nodeType: schemaProperty("string", "Node type.", { enum: ["TITLE", "LINK"] }),
          url: schemaProperty("string", "Optional URL when nodeType is LINK."),
          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"] })
        },
        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