yuque_list_doc_versions
Retrieve all historical versions of a Yuque document to track changes, review edits, or restore previous content using the document ID.
Instructions
List all versions of a 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": {
"docId": "<docId>"
},
"name": "yuque_list_doc_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Yuque doc ID. |
Implementation Reference
- src/tools.js:456-456 (handler)The handler function for the yuque_list_doc_versions tool.
yuque_list_doc_versions: async (args, client) => jsonText(await client.listDocVersions(args.docId)), - src/tools.js:326-334 (registration)The registration definition for the yuque_list_doc_versions tool.
name: "yuque_list_doc_versions", description: "List all versions of a document.", inputSchema: { type: "object", properties: { docId: schemaProperty("number", "Yuque doc ID.") }, required: ["docId"] }