Skip to main content
Glama

browser_read_html

Read-only

Extracts a page's cleaned HTML when structure matters, such as forms, labels, tables, and control wiring. Choose form, text, or full mode to strip noise while keeping markup relationships intact.

Instructions

The page's HTML, cleaned down to what is worth reading.

Use this when the STRUCTURE matters - a form and its labels, a table, what a control is wired to. browser_snapshot gives a flat inventory of things to click; this keeps the markup and the relationships inside it.

mode="form" keeps the interactive surface and the text explaining it, mode="text" returns the prose alone, mode="full" keeps the structure with the noise and the attribute soup removed.

Unlike browser_read_text this is NOT capped: it returns the whole reduced page, tens of thousands of characters on a large one. Cutting markup in the middle leaves tags that mean nothing, so it is not cut - but the answer can be long. Reach for browser_snapshot when you only need something to click.

frame reads inside an iframe: pass an element's frame from the snapshot.

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": "browser_read_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoform
frameNo
browserNoDefaults to `main`; `support` is the helper beside it.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.74.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover safety (readOnlyHint, destructiveHint=false, openWorldHint), and the description adds substantive behavior beyond them: output is NOT capped and can run to tens of thousands of characters, the reason for that (truncating markup breaks tags), and the fact that 'full' strips attributes while preserving structure. This is exactly the kind of size/limit disclosure an agent needs before calling a potentially huge-return tool.

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?

Front-loaded with the one-line purpose, then modes, then the size caveat, then the snapshot fallback. Efficient overall, but the snapshot comparison appears twice ('flat inventory of things to click' and 'Reach for browser_snapshot when you only need something to click'), which is redundant within four short paragraphs.

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 read tool with an output schema (so return values need no explanation) and three optional params, the description covers purpose, mode semantics, iframe targeting, output size, and sibling alternatives. Nothing an agent needs to invoke it correctly is missing.

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 only 33% (only `browser` is documented in-schema), but the description compensates well: all three mode values ('form', 'text', 'full') are explained with what each preserves, and `frame` is given both meaning and provenance ('pass an element's `frame` from the snapshot'). Slight deduction because it doesn't clarify how mode='full' differs in cost/size from the default, which matters given the uncapped warning.

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?

Opens with a specific verb+resource ('The page's HTML, cleaned down to what is worth reading') and immediately distinguishes the tool from two named siblings: browser_snapshot ('flat inventory of things to click') and browser_read_text (capped). An agent can pick between the three readers without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('when the STRUCTURE matters - a form and its labels, a table, what a control is wired to'), explicit when-to-use-something-else ('browser_snapshot when you only need something to click'), plus a concrete routing hint for browser_read_text by contrast. It also states the frame use case for iframe content.

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