Skip to main content
Glama

Look at the page

browser_snapshot
Read-only

Capture the current tab viewport plus margin as structured text with element refs for clicking and navigation; pick full accessibility mode or compact controls-only index.

Instructions

Show the current tab's viewport (plus a margin) as text, with a ref for each element. Format: a header with title, URL and scroll position; then one line per element, indented by nesting: role "name": text [ref] states, e.g. button "Save" [e12] disabled. A word with a ref in a sentence, like pricing[e30], is a clickable link. Cut text ends with (+N chars: get_text eN). The footer says how much is above and below.

Input Schema

NameRequiredDescriptionDefault
modeNoa11y (default): everything in view, with text. index: only controls; shorter, for forms and navigating

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only and open-world safety, and the description adds substantial behavioral context beyond them: the exact line format, indentation by nesting, inline refs for clickable links, and truncation signalling via '(+N chars: get_text eN)'. It stops short of stating size limits, error behavior, or how much the margin is.

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 what is shown, then the format, then the two interpretation rules (link refs, truncated text, footer). Dense but every sentence conveys a rule the agent needs to read the output; the format sentence is long but not redundant.

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

Completeness5/5

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

No output schema exists, and the description effectively substitutes for one by specifying the header, element lines, refs, link convention, truncation marker, and footer. An agent can parse the result and knows where to go for cut text.

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 description coverage is 100% and the single 'mode' parameter has a full enum explanation in the schema, so the schema carries parameter meaning. The description says nothing about mode, leaving it at the baseline for fully documented params.

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 concrete verb and resource – 'Show the current tab's viewport (plus a margin) as text' – and immediately clarifies the distinctive output (text with element refs), which separates it from browser_screenshot and browser_get_text in the sibling list.

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?

Usage is implied rather than stated: the format spec reflects the post-navigation 'what's on screen' case, and '(+N chars: get_text eN)' does route the agent to browser_get_text for full text. But there is no explicit when-to-use/when-not statement and nothing about when to prefer browser_find or browser_screenshot instead.

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