新建文档(需开启写入)
yuque_create_docCreates a new Markdown document in a specified Yuque knowledge base from a title and body, with optional slug. Writes require enabling YUQUE_ALLOW_WRITE=1.
Instructions
在指定知识库中新建一篇 Markdown 文档。默认禁用,需 YUQUE_ALLOW_WRITE=1。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"book_id": "<book_id>",
"title": "<title>",
"body": "<body>"
},
"name": "yuque_create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Markdown 正文 | |
| slug | No | 自定义 slug(可选) | |
| title | Yes | 文档标题 | |
| book_id | Yes | 目标知识库 id |