preview
Retrieves an extended context (approx. 1500 characters) of query matches in a file, including file size, modification date, and type. Use with a path from search results and the query for highlighting.
Instructions
取某个文件在索引里命中查询词的完整上下文(约 1500 字,比 search 返回的摘要长得多),附带文件大小/修改时间/类型。path 用 search 结果里的 path 字段。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标文件的完整路径,取自 search 结果里的 path 字段 | |
| query | Yes | 定位高亮用的查询词,通常和 search 时用的一致 |