Skip to main content
Glama

browser_snapshot

Read-only

Capture a structured snapshot of the active page including interactive and landmark elements with CSS selectors, enabling reliable element targeting for actions like clicks and typing.

Instructions

Capture a structured snapshot of the active page: url, title, and the interactive + landmark elements (role, accessible name, value/state, heading level), each with a CSS selector ref. Pass a returned ref to browser_click / browser_type. Prefer this over browser_screenshot to find and target elements reliably.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description aligns with this by describing a read-only snapshot. It adds value by explaining that returned refs can be passed to browser_click/browser_type, providing behavioral 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no excess. The first sentence defines the tool's output, the second provides usage guidance and comparison. Efficient and well-structured.

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?

Without an output schema, the description adequately explains the snapshot content (url, title, elements with ref) and how refs are used. This is sufficient for an agent to understand the tool's output and integration with other tools.

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?

Input schema has zero parameters, so baseline is 4. The description adds meaning by detailing what the snapshot contains, though no parameter info is needed.

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 'Capture a structured snapshot of the active page' and enumerates specific elements (url, title, interactive + landmark elements). It explicitly distinguishes from browser_screenshot, making the purpose distinct and unambiguous.

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?

The description advises to 'Prefer this over browser_screenshot to find and target elements reliably', giving clear context for use. It does not explicitly state when not to use, but does provide a positive recommendation.

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

Install Server

Other Tools

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/vincentvella/devloop'

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