Open in New Tab
open_in_new_tabOpen a URL in a new browser tab to present content or enable user interaction with webpages.
Instructions
Open a URL in a new tab to present content or enable user interaction with webpages
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to open in the browser |
Implementation Reference
- src/mcp.ts:192-203 (handler)The handler function for the open_in_new_tab tool. It calls the browser's openURL method and returns the new tab ID.
async (args) => { const { url } = args; const browser = getInterface(options.browser); const tabRef = await browser.openURL(options.applicationName, url); const tabId = `ID:${tabRef.windowId}:${tabRef.tabId}`; return { content: [ { type: "text", text: `Successfully opened URL in new tab. Tab: \`${tabId}\``, }, ], - src/mcp.ts:182-191 (registration)Tool registration for open_in_new_tab.
server.registerTool( "open_in_new_tab", { title: "Open in New Tab", description: "Open a URL in a new tab to present content or enable user interaction with webpages", inputSchema: { url: z.string().url().describe("URL to open in the browser"), }, },