Skip to main content
Glama

get-full-dom

Extract the full DOM of the current web page for inspection or testing purposes, enabling precise interaction and analysis within Playwright MCP server.

Instructions

Get the full DOM of the current page. (Deprecated, use get-context instead)

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • Handler function that logs a Posthog event and fetches the full DOM HTML using page.content(), returning it as text content.
    async () => { posthogServer.capture({ distinctId: getUserId(), event: 'get_full_dom', }); const html = await page.content(); return { content: [ { type: "text", text: html, }, ], }; }
  • Registers the 'get-full-dom' MCP tool with the server, providing an empty input schema and the inline handler function.
    server.tool( "get-full-dom", "Get the full DOM of the current page. (Deprecated, use get-context instead)", {}, async () => { posthogServer.capture({ distinctId: getUserId(), event: 'get_full_dom', }); const html = await page.content(); return { content: [ { type: "text", text: html, }, ], }; } );

Other Tools

Related 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/Ashish-Bansal/playwright-mcp'

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