Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesTab ID to switch to

Implementation Reference

  • 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 };
        }
      }
    );

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/TacosyHorchata/Pilot'

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