Skip to main content
Glama
funkyfunc

browser-dvr-mcp

by funkyfunc

get_semantic_surface

Retrieve a compressed semantic Markdown of the webpage's accessible structure, stripping non-semantic HTML noise to enable precise interaction via stable element IDs.

Instructions

THE PRIMARY PERCEPTION TOOL. Queries the browser's native Accessibility Object Model via CDP and returns a hyper-compressed hierarchical Markdown document — the Unified Semantic Accessibility Graph (USAG).

WHY THIS EXISTS: • Raw HTML is 90% semantic noise (CSS classes, nested divs, tracking pixels). This tool strips all of it. • The AX tree natively resolves closed shadow roots, computes accessible names, and pierces iframes. • Each node includes a stable [id: NNN] tag (backendNodeId) that you MUST use with atomic_interact.

WORKFLOW:

  1. Call get_semantic_surface to perceive the page.

  2. Read the Markdown to understand the page structure, interactive elements, and their backendNodeIds.

  3. Use atomic_interact with the backendNodeId to interact with specific elements.

  4. Call get_state_delta to see what changed after your action.

SERIALIZATION: The AX tree → Markdown conversion runs on a dedicated worker thread to avoid blocking the JSON-RPC transport.

OPTIONS: • semanticOnly=true — Aggressively prunes non-interactive structural nodes (wrapper divs). Use this for large pages where you only need interactive elements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format (default: "markdown"). "json" returns the structured node list ({stableId, backendNodeId, role, name, value, childIds}) — the source of truth the Markdown is a view of, for programmatic consumers/eval harnesses.
semanticOnlyNoPrune non-interactive structural nodes to reduce output size (default: false)

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