read_chunk_neighbors
Retrieve chunks immediately before and after a search result to supply surrounding context for a matched document chunk.
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). A chunk of a PDF carries pages as in
query_documents.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chunkIndex": "<chunkIndex>"
},
"name": "read_chunk_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| source | No | ||
| filePath | No | ||
| chunkIndex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||