pilot_tab_select
Switch to a specific browser tab by ID to manage multiple web pages during automation tasks.
Instructions
Switch to a specific browser tab by ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tab ID to switch to |
Implementation Reference
- src/tools/tabs.ts:55-68 (handler)The handler implementation for the 'pilot_tab_select' tool, which takes a tab ID and switches the browser focus to that tab using the BrowserManager.
server.tool( 'pilot_tab_select', 'Switch to a specific browser tab by ID.', { id: z.number().describe('Tab ID to switch to') }, async ({ id }) => { await bm.ensureBrowser(); try { bm.switchTab(id); return { content: [{ type: 'text' as const, text: `Switched to tab ${id}` }] }; } catch (err) { return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } );