Skip to main content
Glama

Fill field(s)

browser_fill

Replace text field values or fill multiple inputs, selects, and checkboxes in one call. Target fields by ref, label, role, or test ID, with optional verification and Enter submit.

Instructions

Replace the value of a text field. Pass fields to fill several fields (text, select, checkbox via true/false) in one call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
nthNo
refNoElement ref from snapshot (preferred)
nameNo
roleNo
textNo
exactNo
labelNo
valueNo
expectNoExpectSpec postconditions
fieldsNo
pageIdNo
submitNoPress Enter after filling
testIdNo
withinNoScope to a unique container (ref, role+name, label, testId or CSS selector)
optionsNo
sessionNo
selectorNoCSS (last resort)
snapshotNoPage state returned after the action: diff (default), full, none
placeholderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: values are replaced rather than appended, and boolean values drive checkboxes while arrays handle selects. It omits verification, Enter-on-submit, postcondition expectations, and snapshot return behavior, which the schema only partially documents.

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?

Two short sentences with no filler, and the primary action is front-loaded before the batching hint. The efficiency is partly achieved by omission rather than by tight editing, but the prose itself is clean and well-ordered.

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

Completeness2/5

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

For a 19-parameter, deeply nested browser automation tool with no output schema and low schema coverage, the description is far too thin. It never explains postcondition checking, submit behavior, error handling, or page-state return, so an agent must reverse-engineer most invocation semantics from the schema alone.

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

Parameters2/5

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

Schema description coverage is only 32% across 19 parameters with nested objects, so the description carries a heavy burden and adds meaning for just one parameter (`fields`) plus the accepted value types. Key parameters such as `expect`, `submit`, `snapshot`, `mode`, and `options.verify`/`continueOnError` are never mentioned in the description, leaving the coverage gap unaddressed.

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?

States a specific verb and resource ('Replace the value of a text field') and extends it to batched fills via `fields`, so the core action is unmistakable. It does not distinguish this from sibling tools that also target form controls, notably browser_select_option and browser_check, which the description's mention of select and checkbox fields arguably overlaps.

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

Usage Guidelines2/5

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

The only usage hint is 'Pass `fields` to fill several fields ... in one call', which implies batching but gives no when-to-use versus when-not guidance. With siblings like browser_select_option and browser_check available, an agent gets no direction on whether to use this tool or those for a select or a checkbox.

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