sgbr_get_fulltext
sgbr_get_fulltextRead one item's OCR full text in paged character windows. Books are large, so page forward with offset/next_offset, or read a span of scan pages with page_from/page_to. Identify the item by record id (from sgbr_search) or scan_id (from sgbr_get_record). Text is uncorrected OCR, often Fraktur, so expect recognition errors. A fold-out plate id is refused: a plate is one page and its scan_id is the parent volume's, so read the plate's own lettering with sgbr_get_page_ocr, or pass the parent scan_id here to read the whole volume deliberately.
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": "sgbr_get_fulltext"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Record id from an sgbr_search result. The tool resolves its scan id automatically. Provide this OR scan_id. | |
| offset | No | 0-based character offset into the full text (or into the page span). Use the `next_offset` from a prior call to page forward. | |
| page_to | No | Last scan page to read (inclusive; defaults to page_from; at most 50 pages per call). Requires page_from. | |
| scan_id | No | Scan id from sgbr_get_record (`digital.scan_id`, e.g. "UBBS-00190048"). Use it to skip the id→scan lookup. Provide this OR id. | |
| max_chars | No | Max characters to return in this window (15000 default, 60000 max). The window snaps to a word boundary. | |
| page_from | No | Read from this scan page (the numbering sgbr_locate_text, sgbr_get_page_ocr and the viewer's ?page=N use) instead of the whole book. Each page is marked `--- page N ---`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| text | Yes | ||
| offset | Yes | ||
| page_to | Yes | ||
| scan_id | Yes | ||
| has_more | Yes | ||
| ocr_note | Yes | ||
| last_page | Yes | ||
| page_from | Yes | ||
| source_url | Yes | ||
| viewer_url | Yes | ||
| next_offset | Yes | ||
| total_chars | Yes | ||
| returned_chars | Yes | ||
| window_page_to | Yes | ||
| window_page_from | Yes |