page_read
Reads a page's title and HTML without opening it, returning saved file text or PDF embedded text with paging and grep support, so agents can inspect or copy content safely.
Instructions
Read a page's title and HTML (open or closed, without opening it). File pages return the saved file's text instead, through Scribe's page access, even without filesystem access; offset/limit and page_grep work on that text; an image file page returns its image. PDFs return embedded text with document page markers (no OCR); pdfPage/pdfLimit select a bounded range, defaulting to page 1. Check pdf.nextPage, emptyPages and truncatedPages. Line offsets apply to the selected range. The HTML comes as a second, unescaped text block: copy oldStrings from it verbatim. A page over 24 KB comes back as its size, line count and an outline with line numbers (a file page returns its first lines); then read a window with offset/limit (leave the line-number prefix out of oldStrings), or find text with page_grep. In Code mode, toFile checks an HTML page out to a temp file to edit and check in with page_patch htmlPath; not for file pages or on the Read-only and Board rungs.
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": "page_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Tab id, e.g. t_ab12cd34. | |
| key | No | Page key, e.g. scribe:sprint-notes (the scribe: prefix is optional). | |
| full | No | Return the whole HTML even when it is large; rarely needed. | |
| limit | No | Lines from offset. Default 400. | |
| offset | No | First line, 1-based, as the outline or page_grep numbers it. | |
| toFile | No | Write the HTML to a temp file instead; returns path and revision for page_patch htmlPath + expectedRevision. | |
| pdfPage | No | PDF only: first document page, 1-based. Default 1; returned pdf.nextPage continues. | |
| numbered | No | Prefix lines with their number and a tab. Default true for a window, false for the whole page. | |
| pdfLimit | No | PDF only: document pages to extract (1–5). Default 1. Embedded text only, at most 20,000 characters per page, even with full: true. |