Skip to main content
Glama
mcp-browser-dev-tools

mcp-browser-dev-tools

by Hinaser

get_snapshot

Lists visible headings and interactive controls with reference selectors so agents can inspect page structure and target elements without taking a screenshot or fetching the full document.

Instructions

List visible headings and controls, one line each with a ref, role, name, and state, e.g. e3 textbox "Email" value="ada@example.com". ref=e3 works as any tool's selector until the page navigates; controls inside iframes get refs like f1e3. Far cheaper than get_document or a screenshot.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 100.
headingsNoDefault true.
selectorNoOnly inside this element.
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden and does add real value: refs are valid as any tool's selector only until the page navigates, and controls inside iframes get prefixed refs like f1e3. It covers output shape and the example value, but says nothing about how the 100/500 limit affects truncation on large pages, whether hidden or disabled controls are skipped, or what 'state' can contain.

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 dense sentences, front-loaded with the tool's purpose and immediately followed by the ref-lifetime caveat an agent needs before using the output. The inline example earns its place by pinning down the output grammar, though it costs some vertical length.

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?

With no output schema, the description correctly takes on the job of describing return values via the format example and ref semantics, including the iframe prefix case. However, it omits truncation/pagination behavior and what fields appear in 'state', which matter for an agent collecting many elements on a large page.

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 schema already documents limit, headings defaults, and selector. The description adds nothing about how selector interacts with refs or iframe scoping, so it does not meaningfully extend parameter meaning beyond the structured fields.

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 ("List visible headings and controls") plus the exact per-line shape (ref, role, name, state) with a concrete example, so an agent knows precisely what it gets back. It also names the two siblings it substitutes for (get_document, a screenshot), making it distinguishable 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 Guidelines4/5

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

Implies the selection condition clearly through the cost comparison: use this instead of get_document or take_screenshot when you need element refs cheaply. It does not state explicit exclusions (e.g. when full text or pixel data is genuinely required), so it falls short of the when/when-not ideal.

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