yuque_update_doc
Update an existing document in a Yuque knowledge base by specifying the repository and document ID, with optional changes to title, content, slug, or visibility.
Instructions
Update an existing document
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>",
"doc_id": "<doc_id>"
},
"name": "yuque_update_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | Repo ID or namespace (e.g., "mygroup/mybook") | |
| doc_id | Yes | Document ID or slug | |
| title | No | New document title | |
| slug | No | New document slug | |
| body | No | New document content | |
| format | No | Content format for body. Omit or use markdown to write through the YMD-compatible flow; use lake/html for the legacy document API. | |
| public | No | Public visibility: 0 (private) or 1 (public) |