Skip to main content
Glama

browser_tab_new

Open a new browser tab to navigate to a specified URL or create a blank tab for web interaction.

Instructions

Open a new tab

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoThe URL to navigate to in the new tab. If not provided, the new tab will be blank.

Implementation Reference

  • Handler function for the 'browser_tab_new' tool. Creates a new tab using context.newTab() and optionally navigates to the provided URL using tab.navigate(), then includes snapshot in response.
    handle: async (context, params, response) => { const tab = await context.newTab(); if (params.url) await tab.navigate(params.url); response.setIncludeSnapshot(); },
  • Schema definition for the 'browser_tab_new' tool, specifying name, title, description, optional url input schema, and readOnly type.
    schema: { name: 'browser_tab_new', title: 'Open a new tab', description: 'Open a new tab', inputSchema: z.object({ url: z.string().optional().describe('The URL to navigate to in the new tab. If not provided, the new tab will be blank.'), }), type: 'readOnly', },
  • Registration of the 'browser_tab_new' tool (as newTab) in the exported array of tab tools, which is later included in the central tools list.
    export default [ listTabs, newTab, selectTab, closeTab, ];
  • src/tools.ts:36-52 (registration)
    Central registration where tabs tools (including browser_tab_new) are spread into the allTools array.
    export const allTools: Tool<any>[] = [ ...common, ...console, ...dialogs, ...evaluate, ...files, ...install, ...keyboard, ...navigate, ...network, ...mouse, ...pdf, ...screenshot, ...snapshot, ...tabs, ...wait, ];

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