Skip to main content
Glama

get-page-html

Reads the current page's HTML in chunks and uses nextOffset to continue reading while the page remains unchanged.

Instructions

Read a chunk of the current HTML. Use nextOffset to read the next chunk while the page remains unchanged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pageId": "<pageId>"
    },
    "name": "get-page-html"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoZero-based offset in Unicode code points. Use nextOffset from the previous result.
pageIdYes
maxCharsNoMaximum Unicode code points to return in this chunk.
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key mutation-dependent trait that chunks are only valid while the page is unchanged, which is valuable. It says nothing about which page "current" refers to, what happens when offsets go stale, or permissions/session requirements, and it relies on a nextOffset field that is never documented because there is no output schema.

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

Conciseness4/5

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

Two short sentences, front-loaded with the action and followed immediately by the paging rule; nothing is redundant. It is terse almost to a fault, but no sentence is wasted.

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

Completeness3/5

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

For a four-parameter tool with no annotations and no output schema, the definition covers the paging model but omits what a chunk actually looks like (raw markup vs. text), how the default/max chunk size interacts with large pages, and error behavior when the page changes mid-read. The schema fills some gaps, but the description should close the rest.

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 coverage is 75% and the offset and maxChars fields already explain chunking and Unicode code-point semantics in detail. The description adds only the nextOffset-to-offset linkage and the page-stability caveat, and it says nothing about pageId or sessionId.

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?

"Read a chunk of the current HTML" gives a specific verb (read) and resource (the current page's HTML), which distinguishes it from siblings like get-page-snapshot or get-page-screenshot that return parsed or rendered views. It stops short of naming an alternative, but the resource is unambiguous.

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?

The second sentence gives real procedural guidance: page through chunks with nextOffset, and only trust chunks while the page is unchanged. It does not say when to choose this tool over get-page-snapshot or get-page-info (e.g., raw vs. structured HTML), so the choice among siblings is left to inference.

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