Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

open-new-page

Open a new webpage within the AdsPower browser environment using LocalAPI, enabling efficient management and interaction with browser profiles and custom fingerprints.

Instructions

Open a new page

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • The handler function that executes the logic for opening a new page in the browser context using Puppeteer.
    async openNewPage() { browser.checkConnected(); const newPage = await browser.pageInstance!.context().newPage(); browser.pageInstance = newPage; return `New page opened successfully`; },
  • Registration of the 'open-new-page' tool with the MCP server, specifying name, description, empty schema, and wrapped handler.
    server.tool('open-new-page', 'Open a new page', schemas.emptySchema.shape, wrapHandler(automationHandlers.openNewPage));
  • Definition of the empty schema used for input validation of the 'open-new-page' tool, requiring no parameters.
    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