preview
Retrieve the complete contextual excerpt around a search term within a file, including metadata like size and type. Useful for examining full passages from search results.
Instructions
取某个文件在索引里命中查询词的完整上下文(约 1500 字,比 search 返回的摘要长得多),附带文件大小/修改时间/类型。path 用 search 结果里的 path 字段。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目标文件的完整路径,取自 search 结果里的 path 字段 | |
| query | Yes | 定位高亮用的查询词,通常和 search 时用的一致 |