Skip to main content
Glama

chrome_get_html

Retrieves the HTML of a Chrome page or a specific CSS-selected element, letting agents inspect outerHTML or innerHTML for a target tab.

Instructions

Get the HTML of the page or an element

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

Input Schema

NameRequiredDescriptionDefault
outerNoouterHTML (default) vs innerHTML
tabIdNo
selectorNoCSS selector (default: html)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and covers very little. It does not say what happens when the selector matches nothing, whether the call waits for page load, how tabId interacts with the active tab, or how large a full-page DOM result can be.

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?

A single short sentence with the resource and scope front-loaded; no wasted wording. Brevity is not the problem here – the issue is that little information is delivered.

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

Completeness2/5

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

For a browser-inspection tool with no annotations, no output schema, and an undocumented tabId, the definition leaves too much unspecified. Multi-tab targeting and error behavior are exactly what an agent needs here and neither is addressed.

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 67%, with outerHTML-vs-innerHTML and the selector default already documented in the schema. The description adds only the loose mapping of 'page or an element' to the default selector, and the undocumented tabId parameter receives no explanation in either place.

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 (get) and resource (HTML) and clarifies the scope as 'the page or an element', which lets an agent distinguish it from text-extraction siblings like chrome_get_text. It stops short of naming an alternative explicitly, so differentiation is implied rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. With close siblings such as chrome_get_text, chrome_get_page_info, and chrome_evaluate nearby, the agent gets no help deciding when raw HTML is the right retrieval versus text, metadata, or scripted extraction.

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