Skip to main content
Glama

pilot_fill

Clear and replace text in input fields or textareas by specifying an element reference and new value. Ideal for form filling and search box entry.

Instructions

Fill an input or textarea with new text, replacing any existing content. Use when the user wants to enter text into a form field, search box, or editable element. Prefer pilot_fill over pilot_type for inputs because it is faster and clears existing content automatically.

Parameters:

  • ref: Element reference from snapshot (e.g., "@e12") or a CSS selector (e.g., "#email")

  • value: The text to fill into the element

Returns: Confirmation with the filled element ref.

Errors:

  • "Element not found": The ref is stale. Run pilot_snapshot to get fresh refs.

  • "Element is not editable": The element is read-only or disabled. Try pilot_click to enable it first.

  • Timeout (5s): The element could not be filled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYesElement ref (@e3) or CSS selector
valueYesValue to fill
Behavior4/5

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

With no annotations, the description discloses key behaviors: replaces content, faster than type, 5s timeout, and common errors. Lacks details on event firing or custom elements, but sufficient for primary use.

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?

Well-structured with clear sections: purpose, usage, parameters, return, errors. No redundant sentences; front-loaded with primary action.

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?

For a simple fill tool with 2 required params and no output schema, the description covers all needed context: purpose, use cases, parameter meaning, return, and errors. Complete for task execution.

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

Parameters3/5

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

Schema coverage is 100%, so baseline 3. Description adds examples for ref but no additional semantic meaning beyond 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 fills an input or textarea, replacing existing content, and explicitly distinguishes it from sibling pilot_type by noting speed and auto-clearing.

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?

Provides explicit when-to-use scenarios (form field, search box, editable element), recommends preferring over pilot_type, and includes error handling guidance for element not found or not editable.

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