pilot_frame_select
Select an iframe by index or name to perform browser actions inside it. Use after listing frames with pilot_frames, then run pilot_snapshot to get new references.
Instructions
Switch the browser context into an iframe so that pilot_snapshot, pilot_click, pilot_fill, and other tools operate inside that frame instead of the main page. Use when the user wants to interact with elements inside an embedded iframe, read iframe content, or fill forms within an iframe. After switching, all refs are cleared — run pilot_snapshot to get fresh refs for the iframe contents. Use pilot_frames to list available frames first.
Parameters:
index: Frame index number from pilot_frames output (e.g., 1, 2)
name: Frame name attribute (alternative to index)
Returns: Confirmation with the frame index/name and its URL, plus a reminder to run pilot_snapshot for fresh refs.
Errors:
"Frame not found": The index or name does not match any frame. Run pilot_frames to see valid indices and names.
"Provide index or name": Neither parameter was supplied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Frame index from pilot_frames output | |
| name | No | Frame name attribute |