Skip to main content
Glama
pm990320

ultimate-playwright-mcp

by pm990320

browser_snapshot

Capture the accessibility tree snapshot of a page and obtain element references to use with other browser tools for automated interaction.

Instructions

Capture accessibility tree snapshot of the current page. Returns element references (e1, e2, etc.) that can be used with other browser tools like click, type, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetIdNoTarget ID of the tab (from browser_tabs). If not provided, uses first available tab.
maxCharsNoMaximum characters in snapshot. Truncates with notice if exceeded. Recommended: 5000-15000 for smaller models, omit for full snapshot.
compactNoRemove unnamed structural elements and empty branches. Reduces snapshot size significantly. Recommended for simpler tasks.
interactiveNoOnly include interactive elements (buttons, links, inputs, etc.). Dramatically reduces snapshot size. Best for form-filling and clicking tasks.
maxDepthNoMaximum tree depth to include (0 = root only). Use 3-5 for focused snapshots of complex pages.
Behavior3/5

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

With no annotations, description carries full burden. Explains return format and purpose, but omits performance impact, size limits, or that snapshot is read-only. Lacks details on truncation behavior beyond what schema says.

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 efficient sentences, front-loaded with action. No extraneous words. Every clause serves a purpose.

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?

Schema covers parameters well, but description doesn't explain what accessibility tree is, why use it, or how to choose parameters (compact vs interactive). Lacks guidance on interpretation. Adequate but not complete.

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?

All 5 parameters have detailed schema descriptions (100% coverage). Description adds no new parameter info; it only states output usage. Baseline 3 is appropriate as schema does the work.

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?

Clearly states 'Capture accessibility tree snapshot', verb+resource. Explains output (element references) and how they're used with other tools (click, type). Distinguishes from visual screenshot tools.

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?

Implies usage as prerequisite for interaction tools, but no explicit when-not-to-use or comparison with siblings like browser_screenshot or browser_checkpoint. Lacks explicit guidance for complex vs simple tasks.

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/pm990320/ultimate-playwright-mcp'

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