Get Chunk Context
get_chunk_contextFetch the full text of a chunk and up to five neighbors on each side in reading order. Specify via chunk_id or document_id with seq to obtain body text for context.
Instructions
Full text of one chunk plus up to 5 neighbours on each side in reading order. Address it by chunk_id (from search results) OR by document_id + seq (from outline spans). This is the only tool that returns body text and it is hard-capped at ~24k characters — walk seq windows to read progressively.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_chunk_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | No | ||
| after | No | ||
| before | No | ||
| chunk_id | No | From search_document results | |
| document_id | No | With seq, from outline spans |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | Yes | ||
| document_id | Yes | ||
| source_path | Yes | Library-relative path of the source file | |
| document_title | Yes | Title of the source document | |
| has_more_after | Yes | ||
| has_more_before | Yes |