Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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; },
  • 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));
  • Defines the empty input schema used for the 'get-page-html' tool, indicating no parameters are required.
    emptySchema: z.object({}).strict(),

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/AdsPower/local-api-mcp-typescript'

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