Skip to main content
Glama
funkyfunc

browser-dvr-mcp

by funkyfunc

browser_query_selector

Query the DOM using CSS selectors or XPath to locate elements across all frames, returning their IDs, text, and bounding boxes for direct interaction.

Instructions

Query the DOM using a CSS selector or XPath and return matching elements with their backendNodeIds, text, and bounding boxes. Automatically searches across all frames (pierces iframes).

PREFER get_semantic_surface for page understanding. Use this tool only when you need to find elements by a specific CSS selector that the AX tree doesn't surface (e.g., elements with specific data-* attributes).

Returns backendNodeIds that can be used directly with atomic_interact.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector or XPath (prefix with "xpath/") to query
timeoutMsNoWait this many ms for the element to appear (default: 0 = instant check)
visibleOnlyNoOnly return visible elements (default: false)
Behavior4/5

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

With no annotations, the description carries the burden. It discloses automatic iframe piercing, return fields (backendNodeIds, text, bounding boxes), and implies non-destructive read. Minor missing details (e.g., behavior on missing element) but overall adequate.

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?

Four focused sentences with no redundancy. Core function, frame piercing, usage guidance, and integration hint for atomic_interact are each addressed concisely.

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?

Despite no output schema, the description sufficiently explains return values and behavior (iframe piercing). For a query tool with well-defined parameters, it covers all needed context.

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 coverage is 100%, so baseline 3. Description adds marginal value by reinforcing XPath prefix usage but does not add significant new meaning beyond the schema.

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 the tool queries the DOM using CSS or XPath and returns matching elements with backendNodeIds, text, and bounding boxes. It also mentions automatic iframe piercing, distinguishing it from siblings like get_semantic_surface.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises preferring get_semantic_surface for page understanding and specifies this tool for CSS selectors not surfaced by the AX tree. Also notes returned backendNodeIds can be used with atomic_interact, providing clear when-to-use and alternatives.

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/funkyfunc/browser-dvr-mcp'

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