yuque_create_doc
Create new documents in Yuque knowledge bases by specifying repository ID, title, content, and format to organize and share knowledge effectively.
Instructions
创建新文档 (Create new document)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoId | Yes | 知识库ID (Repository ID) | |
| title | Yes | 文档标题 (Document title) | |
| content | Yes | 文档内容 (Document content) | |
| format | No | 文档格式,默认markdown (Document format, default markdown) |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "文档内容 (Document content)",
"minLength": 1,
"type": "string"
},
"format": {
"description": "文档格式,默认markdown (Document format, default markdown)",
"enum": [
"markdown",
"lake",
"html"
],
"type": "string"
},
"repoId": {
"description": "知识库ID (Repository ID)",
"type": "number"
},
"title": {
"description": "文档标题 (Document title)",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"repoId",
"title",
"content"
],
"type": "object"
}