获取语雀文档
get-yuque-docRetrieve detailed information and content from Yuque documents using URL or namespace+slug, including metadata, author details, and full document content in Markdown or HTML format.
Instructions
从语雀 URL 或命名空间+slug 获取文档的详细信息。
支持的输入格式:
命名空间+Slug: 在 namespace 参数中指定 username/repo,在 slug 参数中指定文档 slug
返回的信息包括:
文档基本信息(标题、ID、格式、字数等)
作者信息
知识库信息
文档完整内容(Markdown 或 HTML)
统计数据(浏览量、点赞数、评论数)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-yuque-doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docUrl | No | 语雀文档 URL (例如: https://www.yuque.com/username/repo/doc-slug) | |
| namespace | No | 知识库命名空间 (例如: username/repo),如果提供了 docUrl 则忽略此参数 | |
| slug | No | 文档 slug,需要与 namespace 一起使用 |