Skip to main content
Glama

Read page as Markdown

page_read
Read-only

Extracts a page's readable content as Markdown, including headings, lists, links, tables, and code, or reads a single element by CSS selector or ref. Paginate long output with offset and maxChars.

Instructions

Returns the readable content of the page (or of one element) as Markdown: headings, paragraphs, lists, links, tables, code. Long content is paginated with offset/maxChars.

Input Schema

NameRequiredDescriptionDefault
refNoElement ref from page_snapshot or find, e.g. "e12".
tabIdNoTab to act on. Defaults to the session target tab (see tab_select).
offsetNoCharacter offset to start from (for pagination).
mainOnlyNoPrefer the <main>/<article> region when present (default true).
maxCharsNoMaximum characters to return (default 20000).
selectorNoCSS selector of the element to read instead of the whole page.
includeImagesNoInclude images as ![alt](src) (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that long content is paginated via offset/maxChars, which is useful behavioral context, but it doesn't mention whether truncation is signaled in the result or how pagination terminates.

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

Conciseness5/5

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

Two tight sentences with no waste; the return format is front-loaded and pagination is mentioned last as a secondary detail.

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

Completeness4/5

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

For a read-only extraction tool with no output schema and fully documented parameters, the description covers what comes back and the pagination mechanism. Minor gap: no note on how a truncated result is indicated, which matters when paginating.

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

Parameters3/5

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

Schema description coverage is 100%, so all 7 parameters are already documented with defaults and semantics. The description only restates the pagination pair (offset/maxChars) and adds no new parameter meaning, so baseline 3 applies.

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

Purpose4/5

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

States a specific verb (returns), resource (page or one element), and output format (Markdown), plus enumerates what's included: headings, paragraphs, lists, links, tables, code. Sibling differentiation from page_snapshot/find is only implicit via the ref parameter's schema note, not stated in the description itself.

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

Usage Guidelines3/5

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

Usage is implied by 'readable content' — an agent can infer this is for extracting readable text rather than structure or raw HTML. But there is no explicit when-to-use vs page_snapshot, evaluate, or dom_inspect, and no guidance on when to prefer selector vs ref.

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