Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

navigate

Direct a browser profile to a specific URL using AdsPower LocalAPI, enabling automated navigation for browser automation tasks.

Instructions

Navigate to the url

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe url to navigate to

Implementation Reference

  • The main handler function for the 'navigate' tool. It checks if the browser is connected, navigates the current page to the specified URL using Puppeteer, and returns a success message.
    async navigate({ url }: NavigateParams) { browser.checkConnected(); await browser.pageInstance!.goto(url); return `Navigated to ${url} successfully`;
  • Zod schema defining the input parameters for the 'navigate' tool: an object with a required 'url' string field.
    navigateSchema: z.object({ url: z.string().describe('The url to navigate to') }).strict(),
  • Registration of the 'navigate' tool on the MCP server, linking the name, description, input schema, and wrapped handler function.
    server.tool('navigate', 'Navigate to the url', schemas.navigateSchema.shape, wrapHandler(automationHandlers.navigate));

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