读取文档内容
yuque_get_docRetrieve a Yuque document’s Markdown body and metadata by slug, document ID, or full URL. Use it to read document content for search, summarization, or processing workflows.
Instructions
读取一篇语雀文档的 Markdown 正文与元信息。doc 可以是文档 slug 或文档 id;也可以直接传语雀文档链接。
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": {
"doc": "<doc>"
},
"name": "yuque_get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | 文档 slug、文档 id,或形如 https://www.yuque.com/user/book/doc 的链接 | |
| format | No | markdown:优先返回 Markdown 源文;lake:返回语雀富文本 HTML | markdown |
| book_id | No | 知识库 id;doc 传完整链接时可省略 |