read_chunk_neighbors
Get neighboring chunks around a search result for context. Pass a chunk index and optionally a file path or source to read surrounding text.
Instructions
Read the chunks immediately before and after a search result, for context.
Provide exactly one of filePath (absolute path inside a document root) or source (the id of a data/url item). before/after control how many chunks to include on each side of chunkIndex (both default to 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| source | No | ||
| filePath | No | ||
| chunkIndex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||