Skip to main content
Glama
AdsPower

AdsPower LocalAPI MCP Server

Official

get-opened-browser

Retrieve a list of currently active browser instances from the AdsPower LocalAPI MCP Server for profile management and automation tasks.

Instructions

Get the list of opened browsers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the logic for the 'get-opened-browser' tool by querying the API for opened browsers and returning the list.
    async getOpenedBrowser() { const response = await axios.get(`${LOCAL_API_BASE}${API_ENDPOINTS.GET_OPENED_BROWSER}`); if (response.data.code === 0) { return `Opened browser list: ${JSON.stringify(response.data.data.list, null, 2)}`; } throw new Error(`Failed to get opened browsers: ${response.data.msg}`); },
  • The input schema for the 'get-opened-browser' tool, which is empty as it requires no parameters.
    emptySchema: z.object({}).strict(),
  • The registration of the 'get-opened-browser' tool in the MCP server, linking to the handler and schema.
    server.tool('get-opened-browser', 'Get the list of opened browsers', schemas.emptySchema.shape, wrapHandler(browserHandlers.getOpenedBrowser));

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