yuque_update_doc
Modify existing documents in Yuque knowledge bases by updating titles, content, or formats to maintain current information.
Instructions
Update an existing doc.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Yuque doc ID. | |
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. | |
| title | No | Optional new title. | |
| body | No | Optional new body. | |
| format | No | Optional new format. |
Implementation Reference
- src/tools.js:443-443 (handler)The handler function that executes the yuque_update_doc tool logic.
yuque_update_doc: async (args, client) => jsonText(await client.updateDoc(args.docId, args)), - src/tools.js:182-196 (schema)The schema definition and registration for the yuque_update_doc tool.
{ name: "yuque_update_doc", description: "Update an existing doc.", inputSchema: { type: "object", properties: { docId: schemaProperty("number", "Yuque doc ID."), ...repoRefSchema(), title: schemaProperty("string", "Optional new title."), body: schemaProperty("string", "Optional new body."), format: schemaProperty("string", "Optional new format.", { enum: ["markdown", "lake", "html"] }) }, required: ["docId"] } },