Skip to main content
Glama

browser_snapshot

Read-only

Capture a compact snapshot of a page's title, URL, and visible interactive elements, each with a ready-to-use selector or click coordinates, so an AI agent can act on the page accurately.

Instructions

Title, url, and the interactive elements that are actually visible.

Each element carries a selector when one can reach it: pass that string to browser_click or browser_type VERBATIM rather than writing your own. It is built to match exactly ONE element, and the driver acts on the first match, so a caller aiming at the third of five identical links would silently hit the first and be told it succeeded.

Elements with no selector carry at, the centre coordinates, for browser_click_at.

Controls inside iframes, cross-origin too, carry frame (pass it with the selector to any tool) and frame_origin. frames lists each frame and marks one it cannot read unreadable, or unaddressable when no selector reaches it.

It lists what a caller can act on, and it is not the accessibility tree: one country <select> would otherwise fill the answer with its options.

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

Input Schema

NameRequiredDescriptionDefault
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

A3.7/5.0
Behavior4/5

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

Annotations only cover the safety profile (readOnlyHint, openWorldHint, non-destructive); the description adds materially more. It discloses a silent-failure hazard — the driver acts on the first match, so a caller aiming at the third of five identical links "would silently hit the first and be told it succeeded" — plus iframe handling, `frame_origin`, and the `unreadable`/`unaddressable` frame markers. The deliberate exclusion of the accessibility tree to avoid option-flooding explains output shape and size, which is genuinely useful context beyond annotations.

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 return contents, then structured by topic: selectors, coordinates, frames, and scope limits. The third-of-five-links scenario is a little long-winded but it earns its place by explaining a real silent-failure mode. A few sentences could be tightened without losing meaning.

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 the description needn't enumerate return fields, yet it usefully explains the semantics of `selector` vs `at` vs `frame`/`frames` that the schema alone wouldn't convey. For a zero-required-parameter read tool with full annotation and schema coverage, the definition supplies enough for an agent to call it and act on the result; only the main/support browser choice is left entirely to the schema.

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?

There is a single optional parameter (`browser`, main vs support) and schema description coverage is 100%, so the schema already carries its meaning. The description adds nothing about the main/support distinction, only noting that `frame` should be passed "with the selector to any tool." Baseline 3 applies when the schema does the documentation work.

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?

The description opens with what the caller gets back — "Title, url, and the interactive elements that are actually visible" — which lets an agent infer this snapshots the current page into an actionable element list. It also draws a boundary against a sibling concept ("it is not the accessibility tree"), though it never names browser_read_html, browser_read_text, or browser_take_screenshot as the alternatives. Clear purpose, no explicit sibling differentiation by name.

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?

Guidance is strong on how to consume the result: pass `selector` "VERBATIM rather than writing your own" to browser_click or browser_type, and use `at` for browser_click_at. What's missing is when to choose this tool over browser_read_text, browser_read_html, browser_evaluate, or browser_take_screenshot — the caller is told how to use the output but not when this tool is the right first call.

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