pilot_tab_new
Open a new browser tab in Pilot's persistent Chromium instance, optionally navigating to a specific URL for automated web interactions.
Instructions
Open a new browser tab, optionally navigating to a URL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to in the new tab |
Implementation Reference
- src/tools/tabs.ts:25-38 (handler)The handler implementation for pilot_tab_new which uses BrowserManager to create a new tab.
server.tool( 'pilot_tab_new', 'Open a new browser tab, optionally navigating to a URL.', { url: z.string().optional().describe('URL to navigate to in the new tab') }, async ({ url }) => { await bm.ensureBrowser(); try { const id = await bm.newTab(url); return { content: [{ type: 'text' as const, text: `Opened tab ${id}${url ? ` → ${url}` : ''}` }] }; } catch (err) { return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } );