Skip to main content
Glama

pilot_wait

Wait for an element to appear or disappear, for network requests to finish, or for a page to fully load before proceeding with the next action.

Instructions

Wait for a specific condition before proceeding — an element to appear, the network to become idle, or the page to finish loading. Use when the user wants to wait for a dynamic element to load, wait for AJAX/fetch requests to complete, or wait for a modal/spinner to appear or disappear.

Parameters:

  • ref: Element reference from snapshot (e.g., "@e10") or CSS selector to wait for

  • state: What to wait for — "visible" (element appears, default), "hidden" (element disappears), "networkidle" (no network requests for 500ms), or "load" (page load event)

  • timeout: Maximum wait time in milliseconds (default: 15000)

Returns: Confirmation of what was waited for and its state.

Errors:

  • "Timeout waiting for element": The element did not reach the expected state in time. Increase timeout or check the selector.

  • "Nothing to wait for": Neither ref nor state was provided. Supply at least one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoElement ref or CSS selector to wait for
stateNoWhat to wait for
timeoutNoTimeout in milliseconds (default: 15000)
Behavior5/5

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

Despite no annotations, the description discloses all key traits: waits for element states, network idle, page load; default timeout of 15000ms; returns confirmation; lists common errors. No contradictions.

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

Conciseness5/5

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

Description is well-structured with sections for parameters, returns, and errors. It is concise, using clear language without unnecessary repetition.

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 no output schema, the description adequately explains return values and potential errors. It covers all parameters and usage scenarios, making it complete for effective tool invocation.

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

Parameters5/5

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

Schema coverage is 100%, but description adds meaningful context: explains ref as 'element reference from snapshot (e.g., '@e10') or CSS selector', details each state option, and provides default timeout. This adds significant value beyond the schema.

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 tool waits for a condition (element appearance, network idle, page load) with specific verbs and resources. It distinguishes itself from siblings like pilot_navigate or pilot_click, which perform different actions.

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

Usage Guidelines5/5

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

Explicitly provides when to use: 'when the user wants to wait for a dynamic element to load, wait for AJAX/fetch requests to complete, or wait for a modal/spinner to appear or disappear.' It also mentions error handling and troubleshooting.

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