Skip to main content
Glama

browser_snapshot

Captures a compact, numbered snapshot of visible and interactive page elements with reference numbers and bounding boxes so agents can target them for clicking or typing.

Instructions

Capture a compact, numbered DOM snapshot of visible & interactive elements (with ref numbers and bounding boxes). Call this before browser_click or browser_type by ref.

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
tab_idNoTarget tab id from browser_tabs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key behavior: the snapshot is scoped to visible and interactive elements (non-interactive content is omitted), it is numbered, and it returns bounding boxes. It does not explicitly state that it is a non-mutating read or how the active tab is chosen when tab_id is omitted, which are the remaining gaps.

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?

Two short sentences with no waste: the first front-loads what the snapshot contains and its output shape, the second gives the call-ordering rule. Nothing could be removed without losing information.

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, single-optional-parameter read tool with no output schema, the description covers purpose, output shape, and sequencing adequately. The only material omission is what happens when tab_id is absent or when multiple tabs are open.

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, tab_id, and schema coverage is 100% with its own description pointing to browser_tabs. The description adds nothing about tab selection or the default-tab behavior, so the baseline 3 applies when the schema already does the 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 gives a specific verb and resource ('Capture a ... DOM snapshot') plus the defining traits: compact, numbered, visible & interactive elements only, with ref numbers and bounding boxes. That implicitly separates it from browser_screenshot (pixels) and browser_extract_text (text), though neither sibling is named as a contrast.

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?

It states an explicit trigger and ordering rule: call this before browser_click or browser_type by ref, naming both alternatives. It does not say when NOT to use it (e.g. for reading page text, prefer browser_extract_text) or whether it must be re-run after navigation, so it stops short of full routing guidance.

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