Skip to main content
Glama

List Pages

list_pages

Lists all open browser tabs with their URLs and titles to help users track active web sessions and content.

Instructions

Lists all open tabs in the browser with their URLs and titles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation and registration of the 'list_pages' MCP tool in src/tools.ts. The handler uses `getAllPages()` to retrieve and return the open tabs.
    // ── list_pages ────────────────────────────────────────────────────
    server.registerTool(
      "list_pages",
      {
        title: "List Pages",
        description:
          "Lists all open tabs in the browser with their URLs and titles.",
      },
      async () => {
        const pages = await getAllPages();
        return textResult({
          pages,
          count: pages.length,
        });
      }
    );
Install Server

Other Tools

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/ymw0407/auth-fetch-mcp'

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