Skip to main content
Glama

interceptor_chrome_devtools_snapshot

Capture accessibility snapshots from Chrome DevTools sessions to analyze web content structure and compliance for testing and debugging purposes.

Instructions

Take an accessibility snapshot from the bound Chrome DevTools session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
devtools_session_idYesSession ID from interceptor_chrome_devtools_attach
verboseNoInclude full a11y tree details

Implementation Reference

  • Implementation of the interceptor_chrome_devtools_snapshot tool handler.
    server.tool(
      "interceptor_chrome_devtools_snapshot",
      "Take an accessibility snapshot from the bound Chrome DevTools session.",
      {
        devtools_session_id: z.string().describe("Session ID from interceptor_chrome_devtools_attach"),
        verbose: z.boolean().optional().default(false).describe("Include full a11y tree details"),
      },
      async ({ devtools_session_id, verbose }) => {
        try {
          const { targetId } = await ensureSessionTargetIsAlive(devtools_session_id);
          const devtoolsResult = await devToolsBridge.callAction(
            devtools_session_id,
            "snapshot",
            { verbose },
          );
          return {
            content: [{
              type: "text",
              text: truncateResult({
                status: "success",
                devtools_session_id,
                target_id: targetId,
                devtoolsResult: sanitizeDevToolsPayload(devtoolsResult),
              }),
            }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: errorToString(e) }) }] };
        }
      },
    );
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/yfe404/proxy-mcp'

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