Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
indexNoFrame index from pilot_frames output
nameNoFrame name attribute
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully discloses behavior: it clears refs after switching, requires a fresh snapshot, and lists error conditions. This provides the agent with necessary behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with sections for use, parameters, return, and errors. It is clear but slightly verbose; some sentences could be condensed. Overall, it earns a 4.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity and no output schema, the description covers expectations (return value, error cases, post-conditions) adequately. It is complete for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds meaning by specifying that index comes from pilot_frames output and that name is an alternative. It clarifies the relationship between parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Switch the browser context into an iframe') and the specific tools affected (pilot_snapshot, pilot_click, etc.). It distinguishes from sibling tools like pilot_frame_reset and pilot_frames.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use the tool (interacting with iframes, reading content, filling forms) and advises using pilot_frames first and running pilot_snapshot after. It does not explicitly state when NOT to use it, but the guidance is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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