get-full-dom
Extract the complete Document Object Model (DOM) from a web page for analysis, testing, or automation tasks within browser interactions.
Instructions
Get the full DOM of the current page. (Deprecated, use get-context instead)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/index.ts:147-162 (handler)The handler function for the 'get-full-dom' tool. It captures an analytics event and retrieves the full HTML content of the current page using `page.content()`, then returns it as text content.async () => { posthogServer.capture({ distinctId: getUserId(), event: 'get_full_dom', }); const html = await page.content(); return { content: [ { type: "text", text: html, }, ], }; }
- src/mcp/index.ts:143-163 (registration)Registers the 'get-full-dom' tool with the MCP server, including name, description, empty input schema, and inline handler function. Note: marked as deprecated.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, }, ], }; } );