Skip to main content
Glama

page_read

Read-only

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

NameRequiredDescriptionDefault
idNoTab id, e.g. t_ab12cd34.
keyNoPage key, e.g. scribe:sprint-notes (the scribe: prefix is optional).
fullNoReturn the whole HTML even when it is large; rarely needed.
limitNoLines from offset. Default 400.
offsetNoFirst line, 1-based, as the outline or page_grep numbers it.
toFileNoWrite the HTML to a temp file instead; returns path and revision for page_patch htmlPath + expectedRevision.
pdfPageNoPDF only: first document page, 1-based. Default 1; returned pdf.nextPage continues.
numberedNoPrefix lines with their number and a tab. Default true for a window, false for the whole page.
pdfLimitNoPDF only: document pages to extract (1–5). Default 1. Embedded text only, at most 20,000 characters per page, even with full: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint=true only tells the agent this is a read; the description goes far beyond that by disclosing the 24 KB truncation behavior, the outline-with-line-numbers fallback, that HTML arrives as a second unescaped text block whose oldStrings must be copied verbatim, that PDFs return embedded text with no OCR, and that pdf.nextPage/emptyPages/truncatedPages should be checked.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is correctly front-loaded, and nearly every clause carries information. But it is a single dense block of run-on sentences with nested parentheticals and mid-sentence pivots between HTML pages, file pages and PDFs, which makes it slow to parse for a 9-parameter tool that would benefit from grouped or bulleted structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter tool with no output schema, the description is unusually complete: it sketches the return shape (title, HTML block, outline, pdf.nextPage, emptyPages, truncatedPages), the fallback path for large pages, and the mode restrictions on toFile. An agent could call this correctly on the first attempt without further discovery.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning the schema does not: offset/limit apply to the selected PDF range, numbered prefixes must be stripped out of oldStrings, and full:true does not lift the 20,000-character PDF cap. It does not, however, disambiguate id vs key or explain how the line-number prefix interacts with grep output in detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Read a page's title and HTML (open or closed, without opening it)" gives a specific verb plus resource and immediately separates it from page_open by stating it works without opening the tab. It then branches precisely by target type (file page, image file page, PDF), so an agent knows exactly what class of content comes back.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It routes the agent to siblings with conditions: use page_grep to find text instead of paging, and toFile + page_patch htmlPath for editing in Code mode, with an explicit exclusion ("not for file pages or on the Read-only and Board rungs"). What is missing is any guidance on choosing page_read over page_state, page_screenshot or page_show, so the alternative-selection story is strong but not complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.