Skip to main content
Glama

填写输入

web_fill

Clear and fill input fields, textareas, and editable areas on a web page using snapshot references or CSS selectors. Triggers input and change events after filling.

Instructions

清空并填写输入框/文本域/可编辑区域。目标是快照引用或选择器。填写后触发 input 与 change 事件。

权限说明:修改页面表单数据,可能触发校验与提交逻辑。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo最近一次快照中的引用编号,与 selector 二选一
valueYes要填入的完整内容(会先清空原内容)
timeoutNo超时毫秒数,默认 10 秒,0 表示不限制
selectorNoCSS 选择器、text=关键词 或 testid=值,与 ref 二选一
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states that the tool clears existing content before filling, triggers input and change events, and may cause validation or submission logic. This is strong transparency for a mutation tool, though it doesn't discuss failure modes or edge cases.

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?

The description is concise and well-structured. It front-loads the core action ('Clear and fill'), then specifies targeting and events, and ends with a permission note. Every sentence earns its place with no redundancy.

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?

The description is complete for a simple fill tool: it covers purpose, targeting, clearing behavior, event triggering, and potential side effects. The schema documents parameters (including timeout). The lack of an output schema and annotations is offset by the explicit behavioral notes. Minor gaps include error handling and return value behavior, but these are not critical for this tool.

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?

The schema covers 100% of parameters with descriptions, so the baseline is 3. The prose description adds little beyond the schema, as it merely restates the ref/selector targeting and the clearing behavior already documented in the value parameter. No additional semantic value is provided.

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

Purpose4/5

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

The description clearly states the tool's function: clear and fill input fields, textareas, or editable regions. It also specifies the targeting mechanism (snapshot ref or selector) and post-fill events. However, it does not explicitly differentiate from sibling tools like web_type, which is a minor gap.

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

Usage Guidelines3/5

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

The description implies usage for filling form fields and indicates that targeting is via snapshot reference or selector. It does not provide explicit guidance on when to prefer this over web_type or web_select, nor does it mention exclusions. The context is sufficient for basic use but lacks comparative direction.

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/JohnXu22786/browser-automation'

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