create_doc
Generate and publish new documents in Yuque knowledge bases with custom titles, content, and visibility settings. Supports Markdown, HTML, and Lake formats for flexible content creation.
Instructions
在指定知识库中创建新的语雀文档,支持多种格式内容
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accessToken | No | 用于认证 API 请求的令牌 | |
body | Yes | 文档内容,支持Markdown格式 | |
format | No | 内容格式,可选值:markdown、html、lake,默认为 markdown | |
namespace | Yes | 知识库的命名空间,格式为 user/repo | |
public_level | No | 公开性,可选值:0(私密)、1(公开)、2(企业内公开),默认为 1 | |
slug | Yes | 文档的短链接名称,用于URL路径 | |
title | Yes | 文档标题 |