yuque_web_get_doc
Fetch a Yuque document's full detail and body content by ID or slug with its book ID. Retrieve markdown, lake, or lakesheet content plus rich fields like permissions and join tokens.
Instructions
Cookie-based: Get full document detail with body/content. Supports markdown/lake/lakesheet formats. Returns richer fields than v2 get_doc (54 fields including abilities, joinToken, etc.). No membership required, no Token rate limiting. GET /api/docs/{id}?book_id={book_id}. id supports doc slug; book_id supports namespace/slug (e.g. group/book_slug) or numeric. 详见 references/api/web_doc_api.md
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": {
"id": "<id>",
"book_id": "<book_id>"
},
"name": "yuque_web_get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document ID or slug (required) | |
| raw | No | Return raw full JSON (default false, returns trimmed fields) | |
| book_id | Yes | Repository ID, namespace or slug (e.g. group/book_slug), or numeric (required) |