read_doc
Retrieve the full Markdown content of an ArkTS document by providing the objectId obtained from search results.
Instructions
读取 ArkTS 文档的完整内容。
使用场景
在使用 find_docs 搜索后,根据返回的 objectId 读取文档的完整 Markdown 内容。
使用流程
先调用 find_docs 搜索相关文档
从搜索结果中选择最相关的文档
使用该文档的 objectId 调用此工具获取完整内容
使用示例
示例 - 搜索后读取完整文档:
调用:find_docs({ query: "State装饰器" })
从结果中找到 objectId: "arkts-state"
调用:read_doc({ objectId: "arkts-state" })
返回文档的完整 Markdown 内容,包含代码示例和详细说明。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | 文档的唯一标识符,从 find_docs 的搜索结果中获取 |