Skip to main content
Glama

yuque_get_toc

Retrieve the table of contents for a Yuque repository to navigate document hierarchies and manage content structure.

Instructions

Alias of yuque_get_repository_toc_tree for compatibility with official naming.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoIdNoYuque repository ID.
repoNamespaceNoYuque repository namespace, for example user/repo.

Implementation Reference

  • The handler for the tool logic, which routes to the yuque-client implementation.
    yuque_get_repository_toc_tree: async (args, client) => jsonText(await client.getRepositoryTocTree(args)),
  • The schema definition for the underlying tool yuque_get_repository_toc_tree.
      name: "yuque_get_repository_toc_tree",
      description: "Get the full repository TOC tree, including nested directories and docs.",
      inputSchema: {
        type: "object",
        properties: {
          ...repoRefSchema(),
          repoNamespace: schemaProperty("string", "Yuque repository namespace, for example user/repo.")
        }
      }
    },
  • src/tools.js:490-493 (registration)
    Registration of yuque_get_toc as an alias for yuque_get_repository_toc_tree.
      name: "yuque_get_toc",
      description: "Alias of yuque_get_repository_toc_tree for compatibility with official naming.",
      inputSchema: TOOL_DEFINITIONS.find((tool) => tool.name === "yuque_get_repository_toc_tree").inputSchema
    },

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