yuque_delete_toc_node
Remove a title or link node from a Yuque repository's table of contents tree to manage document structure and hierarchy.
Instructions
Delete a TITLE or LINK node from the repository TOC tree.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. | |
| nodeUuid | Yes | Existing TOC node UUID. | |
| parentUuid | No | Optional parent TOC UUID. If omitted, the server resolves the delete strategy from the TOC tree. | |
| targetUuid | No | Alias of parentUuid. | |
| actionMode | No | Optional TOC action mode override. |
Implementation Reference
- src/tools.js:446-446 (handler)The handler implementation for yuque_delete_toc_node, which delegates to the client.deleteTocNode method.
yuque_delete_toc_node: async (args, client) => jsonText(await client.deleteTocNode(args)), - src/tools.js:232-244 (schema)The input schema definition for the yuque_delete_toc_node tool.
name: "yuque_delete_toc_node", description: "Delete a TITLE or LINK node from the repository TOC tree.", inputSchema: { type: "object", properties: { ...repoRefSchema(), nodeUuid: schemaProperty("string", "Existing TOC node UUID."), parentUuid: schemaProperty("string", "Optional parent TOC UUID. If omitted, the server resolves the delete strategy from the TOC tree."), targetUuid: schemaProperty("string", "Alias of parentUuid."), actionMode: schemaProperty("string", "Optional TOC action mode override.", { enum: ["child", "sibling"] }) }, required: ["nodeUuid"] }