Skip to main content
Glama

pilot_frame_reset

Switch back to the main browser frame after interacting with iframes to continue automation tasks.

Instructions

Switch back to the main frame. Use after interacting with an iframe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for pilot_frame_reset, which calls bm.resetFrame().
    server.tool(
      'pilot_frame_reset',
      'Switch back to the main frame. Use after interacting with an iframe.',
      {},
      async () => {
        await bm.ensureBrowser();
        bm.resetFrame();
        return { content: [{ type: 'text' as const, text: 'Switched to main frame. Refs cleared — run pilot_snapshot for fresh refs.' }] };
      }
    );
  • Registration point for iframe tools, including pilot_frame_reset.
      'pilot_frames', 'pilot_frame_select', 'pilot_frame_reset',
    ]);

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