Skip to main content
Glama

browser_fill_form

Fill multiple browser form fields at once using element references from a snapshot, supporting textboxes, checkboxes, radios, comboboxes, and sliders.

Instructions

Fill multiple form fields at once.

fields_json: a JSON array of objects, each with:

  • ref (int): element ref from browser_snapshot

  • value (str): value to set

  • type (str, optional): "textbox" | "checkbox" | "radio" | "combobox" | "slider" (defaults to "textbox")

Example: [{"ref": 3, "value": "Alice"}, {"ref": 5, "value": "true", "type": "checkbox"}]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fields_json": "<fields_json>"
    },
    "name": "browser_fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
fields_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It never says whether filling triggers input/change events, whether the form is submitted, what happens if one ref is stale or invalid (atomic vs partial failure), or whether the page must be re-snapshotted afterward — gaps that matter for a page-mutating browser tool.

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?

One-line purpose followed by a compact field breakdown and a worked example — everything is front-loaded and every line earns its place. No filler or redundant restatement.

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?

With one complex nested parameter, a rich output schema, and no annotations, the description supplies what is needed to build the call correctly. The remaining shortfall is behavioral: it omits failure semantics and whether the fill constitutes a submit, which an agent would still need to know before relying on it.

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 0% and the sole parameter is an opaque JSON string, yet the description fully compensates: it enumerates the object keys, their types, the allowed values for 'type', the default when omitted, and provides a concrete example. An agent can construct a valid payload without opening the schema.

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 ('Fill multiple form fields at once'), which an agent can distinguish from single-field actions like browser_type by the 'multiple ... at once' framing. It does not name the sibling it replaces, so differentiation is implied rather than explicit.

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 batch framing implies when to prefer this over a single-field typing tool, and the 'ref (int): element ref from browser_snapshot' note implies a snapshot must be taken first. However, there is no explicit when-to-use/when-not statement, no mention of alternatives, and no stated prerequisites beyond the ref source.

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