get-page-html
Retrieve HTML content from web pages using AdsPower browser automation, enabling data extraction and page analysis for browser profile management.
Instructions
Get the html content of the page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/automation.ts:75-79 (handler)The core handler function for the 'get-page-html' tool. Checks browser connection and retrieves the full HTML content of the current page using Puppeteer's page.content() method.async getPageHtml() { browser.checkConnected(); const html = await browser.pageInstance!.content(); return html; },
- src/utils/toolRegister.ts:65-66 (registration)Registers the 'get-page-html' tool with the MCP server, specifying its name, description, empty input schema, and wrapped handler.server.tool('get-page-html', 'Get the html content of the page', schemas.emptySchema.shape, wrapHandler(automationHandlers.getPageHtml));
- src/types/schemas.ts:164-164 (schema)Defines the empty input schema used for the 'get-page-html' tool, indicating no parameters are required.emptySchema: z.object({}).strict(),