read_document
Retrieve the full text around a search result's character offsets to see context that was cut off. Specify a document ID and start/end positions; out-of-range offsets are clamped safely.
Instructions
Read a document's text around a character range, to see what a search result was cut off from. Pass the document_id and the source.start_offset / source.end_offset of a passage, widened by a few hundred characters on each side. Offsets past either end are clamped rather than refused, and total_codepoints tells a clamped range from an exhausted one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | No | ||
| document_id | Yes | From a search result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |