Skip to main content
Glama
yubao2000

mcp-browser-agent

by yubao2000

browser_getHTML

Retrieve the HTML source of the current page or a specific element using a CSS selector. Extract page structure or debug content directly from the browser.

Instructions

获取当前页面的 HTML 源码(或指定元素的 HTML)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outerNo是否包含元素本身的标签,默认 true
selectorNoCSS 选择器,留空则获取整个页面的 outerHTML

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description bears the full burden. It indicates a read operation ('get') with no side effects mentioned, which is consistent with a getter. However, it does not specify behavior for invalid selectors or empty results, leaving minor ambiguities.

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?

The description is a single, concise sentence that fully conveys the tool's function without superfluous details. It is well-structured and immediately understandable.

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 simple retrieval tool, the description adequately covers its core behavior. It lacks explicit error scenarios or return format, but these are not critical for a basic getter and the description leaves no major gaps in understanding.

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 schema covers 100% of parameters. The descriptions add meaningful context: 'outer' clarifies inclusion of the element's own tag and its default, while 'selector' explains that an empty value retrieves the whole page. This goes beyond basic type information.

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?

The description clearly states that the tool retrieves HTML source of the current page or a specified element, making its purpose unmistakable. It is distinct from sibling tools like browser_getTitle or browser_screenshot, which serve different retrieval purposes.

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 description implies usage for obtaining HTML but does not explicitly contrast it with alternatives such as browser_extract or browser_evaluate. There is no direct guidance on when to prefer this tool over others, though the purpose is self-evident.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yubao2000/mcp-browser-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server