Skip to main content
Glama

fill_input

Set the value of input, textarea, or contenteditable elements via typing, appending, direct set, fast type, or clear modes, with a customizable timeout for reliability.

Instructions

Set the value of an input, textarea, or contenteditable element. If no timeout given (0 or None), then SeleniumBase uses 7 seconds. Raises an exception if the element isn't found within the timeout. Args: mode: 'type' (default) clears the field then types text; 'append' sends text as keystrokes without clearing first; 'set_value' sets the value directly and instantly (good for sliders and other fast form fills; skips key events); 'fast_type' clears the field then types text fast (good for when the extra stealth doesn't matter); 'clear' empties the field — text is ignored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNotype
textNo
timeoutNo
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It reveals the default timeout of 7 seconds, the exception when the element is not found, the clearing-vs-appending behavior for each mode, and that set_value skips key events. This is substantial and useful behavior-level detail.

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 a front-loaded purpose sentence followed by a compact argument list. Each line delivers meaningful information, and the mode list is appropriately detailed without being rambling.

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

Completeness4/5

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

Given that an output schema exists and the operation is a single form-field action, the description covers the essential invocation knowledge: target elements, mode behavior, timeout, and failure handling. It does not discuss when not to use the tool, but that is not essential for correctly filling an input.

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?

Since schema description coverage is 0%, the description compensates well: it explains all enum values for mode, clarifies what text does in each mode, and specifies timeout semantics. Only 'selector' lacks explicit elaboration, but its meaning is strongly implied by the tool name and standard conventions.

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 first sentence uses a specific verb ('Set the value of') and names the exact target element types ('input, textarea, or contenteditable element'). This clearly distinguishes fill_input from generic sibling actions like click or element_action, even without explicitly naming them.

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?

The tool's purpose is clear and provides mode-specific usage guidance ('good for sliders and other fast form fills', 'good for when the extra stealth doesn't matter'). However, it does not explicitly enumerate when to prefer a sibling tool such as element_action or run_javascript, so it stops short of a 5.

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/seleniumbase/seleniumbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server