yuque_create_doc
Create documents in Yuque knowledge bases with optional parent directory attachment for organized content management.
Instructions
Create a doc. If parentUuid is provided, the doc is attached under that TOC node.
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": {
"title": "<title>"
},
"name": "yuque_create_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoId | No | Yuque repository ID. | |
| repoNamespace | No | Yuque repository namespace. | |
| title | Yes | Doc title. | |
| body | No | Markdown or lake body. | |
| format | No | Doc format. | |
| slug | No | Optional slug. | |
| parentUuid | No | Optional TOC parent UUID. |
Implementation Reference
- src/tools.js:442-442 (handler)Handler for yuque_create_doc that calls client.createDoc.
yuque_create_doc: async (args, client) => jsonText(await client.createDoc(args)), - src/tools.js:167-180 (schema)Registration and schema for yuque_create_doc.
name: "yuque_create_doc", description: "Create a doc. If parentUuid is provided, the doc is attached under that TOC node.", inputSchema: { type: "object", properties: { ...repoRefSchema(), title: schemaProperty("string", "Doc title.", { minLength: 1 }), body: schemaProperty("string", "Markdown or lake body."), format: schemaProperty("string", "Doc format.", { enum: ["markdown", "lake", "html"] }), slug: schemaProperty("string", "Optional slug."), parentUuid: schemaProperty("string", "Optional TOC parent UUID.") }, required: ["title"] }