yuque_update_doc
Update existing documents in Yuque knowledge bases by modifying titles, content, and format. Supports markdown, lake, and HTML formats for document management.
Instructions
更新文档 (Update existing document)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | 文档ID (Document ID) | |
| repoId | Yes | 知识库ID (Repository ID) | |
| title | No | 文档标题 (Document title) | |
| content | No | 文档内容 (Document content) | |
| format | No | 文档格式 (Document format) |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "文档内容 (Document content)",
"type": "string"
},
"docId": {
"description": "文档ID (Document ID)",
"type": "number"
},
"format": {
"description": "文档格式 (Document format)",
"enum": [
"markdown",
"lake",
"html"
],
"type": "string"
},
"repoId": {
"description": "知识库ID (Repository ID)",
"type": "number"
},
"title": {
"description": "文档标题 (Document title)",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"docId",
"repoId"
],
"type": "object"
}