Skip to main content
Glama

list_pages

Retrieve all open browser pages for automation, debugging, and performance analysis using Chrome DevTools.

Instructions

Get a list of pages open in the browser.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Full tool definition, registration, schema (empty), and handler for 'list_pages' tool. Exports the tool object created by defineTool.
    export const listPages = defineTool({
      name: 'list_pages',
      description: `Get a list of pages open in the browser.`,
      annotations: {
        category: ToolCategories.NAVIGATION_AUTOMATION,
        readOnlyHint: true,
      },
      schema: {},
      handler: async (_request, response) => {
        response.setIncludePages(true);
      },
    });
  • The handler function that sets the response to include the list of open pages, effectively listing them.
    handler: async (_request, response) => {
      response.setIncludePages(true);
    },
  • Empty schema indicating the tool takes no input parameters.
    schema: {},

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/SHAY5555-gif/chrome-devtools-mcp'

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