fetch_documentation_page
Retrieve the full Markdown content of a documentation page from a GitHub repository by specifying the repository path and page slug.
Instructions
获取仓库文档的指定页面内容。
根据页面 slug(URL 标识符)获取该页面的完整 Markdown 文档内容。 适用于读取特定章节或页面的详细内容。
返回的 Markdown 页面内容中可能包含两种链接格式:
仓库文件链接 - 格式:
[文件名](文件路径#L开始行号-L结束行号)例如:[index.ts](index.ts#L1-L28)[package.json](package.json#L1-L77)这类链接指向仓库内的源代码文件,可提取文件路径和行号范围, 使用fetch_repository_file(repo_path, file_path, start_line, end_line)获取具体内容。文档导航链接 - 格式:
[标题](页面slug)例如:[概述](1-overview)[快速开始](2-quick-start)这类链接指向文档的其他页面,使用fetch_documentation_page(repo_path, 页面slug)获取该页文档内容。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | 仓库路径,格式: owner/repo 或完整 URL | |
| page_slug | Yes | 页面 slug,如 "1-overview", "quick-start" | |
| language | No | 文档语言,可选 "zh"(中文) 或 "en"(英文) | zh |