Skip to main content
Glama

browser_tab_list

Retrieve a list of open browser tabs for web automation and testing with Playwright MCP, enabling structured accessibility interactions without screenshots.

Instructions

List browser tabs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Full definition and registration of the 'browser_tab_list' tool, including schema, handler function, and capability.
    const listTabs = defineTool({ capability: 'core-tabs', schema: { name: 'browser_tab_list', title: 'List tabs', description: 'List browser tabs', inputSchema: z.object({}), type: 'readOnly', }, handle: async (context, params, response) => { await context.ensureTab(); response.setIncludeTabs(); }, });
  • The handler function for 'browser_tab_list' which ensures tab context and sets response to include tabs.
    handle: async (context, params, response) => { await context.ensureTab(); response.setIncludeTabs(); },
  • Schema definition for 'browser_tab_list' tool: no input parameters, readOnly type.
    schema: { name: 'browser_tab_list', title: 'List tabs', description: 'List browser tabs', inputSchema: z.object({}), type: 'readOnly', },

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/maywzh/playwright-mcp'

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