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
| Name | Required | Description | Default |
|---|---|---|---|
| docId | No | Doc ID. Used to resolve nodeUuid if nodeUuid is omitted. | |
| nodeUuid | No | Existing TOC node UUID. | |
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. | |
| parentUuid | No | Target parent UUID. | |
| targetUuid | No | Alias of parentUuid. | |
| actionMode | No | TOC action mode. | |
| position | No | Insert position. |
Implementation Reference
- src/tools.js:444-444 (handler)Handler function for yuque_move_document tool.
yuque_move_document: async (args, client) => jsonText(await client.moveDocument(args)), - src/tools.js:198-212 (schema)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"] }) } } },