document_read_around
Read the verbatim text surrounding a search match, including configurable before and after units, so you can inspect context without losing the match or its cursor.
Instructions
Verbatim text around a search match: the match's units plus before/after units (defaults: 1 page, 3 paragraphs, 15 lines). The match is always inside the excerpt; anything left out on either side is stated with a cursor. [docbridge schema 0.2.4]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| encoding | No | Text encoding of a .md/.txt input. Omit for UTF-8; docbridge never guesses. | |
| match_id | Yes | ||
| max_chars | No | Most characters returned; a cut is always stated, with a cursor to continue. | |
| input_path | Yes | Absolute file path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| error | No | ||
| match | No | ||
| source | No | ||
| excerpt | No | ||
| invariant | No | docbridge may reduce the volume of its own responses, but it never alters, summarizes, paraphrases, semantically filters, or silently truncates source evidence | |
| truncated | No | True if anything in the requested range was not returned. | |
| next_cursor | No | Pass as `cursor` to document_read to continue exactly. | |
| before_cursor | No | ||
| schema_version | Yes | ||
| remaining_chars | No | Characters of the requested range after the excerpt. | |
| requested_units | No | ||
| unreadable_units | No | Unreadable units inside this excerpt. | |
| operation_completed | Yes | ||
| omitted_before_chars | No | ||
| range_unreadable_units | No | Every unreadable unit of the whole requested range, returned or not. |