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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/iframe.ts:59-68 (handler)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.' }] }; } ); - src/tools/register.ts:48-50 (registration)Registration point for iframe tools, including pilot_frame_reset.
'pilot_frames', 'pilot_frame_select', 'pilot_frame_reset', ]);