yuque_create_doc
Create a new document in a Yuque repository or book. Provide repo ID, title, and optional content to add it.
Instructions
Create a new document in a repo/book
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": {
"repo_id": "<repo_id>",
"title": "<title>"
},
"name": "yuque_create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Document content (markdown or lake format) | |
| slug | No | Document slug (URL-friendly identifier) | |
| title | Yes | Document title | |
| format | No | Content format: markdown, lake, html | |
| public | No | Public visibility: 0 (private) or 1 (public) | |
| repo_id | Yes | Repo ID or namespace (e.g., "mygroup/mybook") |