Skip to main content
Glama

browser_get_html

Retrieve the raw HTML source of the current browser page when exact markup is required for parsing or extraction. Use only when converted Markdown output is insufficient.

Instructions

Get the full HTML source of the current page.

[!] DO NOT use this tool unless you absolutely need the raw HTML. In most cases, using browser_get_as_markdown is the right way to go. The output of this tool may be extremely long, use it only when truly required.

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_get_html"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose the key risk: the output may be extremely long and should be treated as a last resort, which matters for context budgeting. It also implies a live page must be open ('current page'), but it does not clarify whether the HTML reflects the post-JavaScript DOM or the original server response, which is the most consequential ambiguity for a source-dump 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?

The purpose is front-loaded in one line, followed by a clearly marked warning, so structure is good. The warning is slightly redundant, restating the same caution twice ('DO NOT use unless you absolutely need' and 'use it only when truly required'), which costs a line without adding information.

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?

An output schema exists, so return-shape explanation is unnecessary, and the description covers the main practical concern (output size). The remaining gap is the DOM-vs-raw-source question, which matters given the presence of fetch_raw_page_as_html, but the core decision information is present.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate beyond the implicit target ('the current page'), which it does state. Baseline for a parameterless tool is 4.

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?

States a specific verb and resource ('Get the full HTML source') and scopes it to 'the current page', which immediately separates it from markdown-oriented siblings. The contrast with browser_get_as_markdown makes the distinction usable without opening either 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?

Explicitly says when NOT to use it ('DO NOT use ... unless you absolutely need the raw HTML') and names the preferred alternative (browser_get_as_markdown) with the condition that selects it ('in most cases'). This is exactly the routing guidance an agent needs.

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