Skip to main content
Glama
epi-builder
by epi-builder

browser_snapshot

Capture accessibility snapshots of web pages to analyze structure and identify potential issues for improved user experience.

Instructions

Capture accessibility snapshot of the current page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'browser_snapshot' tool. It ensures the browser and page are initialized, retrieves the current page's title and URL, and returns a textual snapshot response.
    private async handleSnapshot() { await this.ensureBrowser(); // Get page content and create a simple snapshot const title = await this.browserState.page!.title(); const url = this.browserState.page!.url(); return { content: [ { type: 'text', text: `Page Snapshot: Title: ${title} URL: ${url} [Use browser_click, browser_type tools to interact with elements]`, }, ], }; }
  • Input schema for the 'browser_snapshot' tool, defining an empty object (no required parameters).
    inputSchema: { type: 'object', properties: {}, },
  • src/server.ts:74-81 (registration)
    Registration entry for the 'browser_snapshot' tool in the ListToolsRequestSchema response, including name, description, and input schema.
    { name: 'browser_snapshot', description: 'Capture accessibility snapshot of the current page', inputSchema: { type: 'object', properties: {}, }, },
  • src/server.ts:160-161 (registration)
    Dispatch registration in the CallToolRequestSchema switch statement, routing calls to the handleSnapshot() function.
    case 'browser_snapshot': return await this.handleSnapshot();

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/epi-builder/mcp-test'

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