Skip to main content
Glama

批量填写表单

browser_fill_form
Destructive

Fill multiple form fields in a single browser call, including text inputs, select options, checkboxes, and radios, to reduce repeated single-field typing. Returns a snapshot after all fields are set.

Instructions

Fill multiple form fields in one call instead of one browser_type per field. Each item takes a ref plus either value (text input / select option value), label (select by visible label), or checked (checkbox / radio). Fields are filled in order and the resulting snapshot is returned once at the end, which makes multi-field forms far cheaper than repeated single-field calls.

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": "<fields>"
    },
    "name": "browser_fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab id (default: active tab)
fieldsYesFields to fill, in order
snapshotNoReturn an incremental snapshot after all fields (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely non-annotated behavior: fields are applied in order and the snapshot is returned only once at the end, which tells the agent there is no intermediate verification point. It does not say what happens on partial failure mid-list, which matters for a destructive 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?

Two sentences, both earning their place: the first establishes purpose and the sibling alternative, the second explains the item shape and the batching payoff. Front-loaded and free of restatement of the title.

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

Completeness3/5

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

For a 3-parameter destructive tool with no output schema, the description covers purpose, ordering, and return timing reasonably well. However, it leaves out the `submit` parameter (which presses Enter and can trigger real form submission) and says nothing about failure or rollback behavior, which are the details an agent most needs before batch-mutating a live page.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema lacks: the three per-item modes are presented as alternatives matched to element type (text/select value, select label, checkbox/radio checked), which the flat schema does not state. It omits the per-item `submit` flag and `tabId`, both of which remain schema-only.

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 opens with a specific verb and resource ('Fill multiple form fields in one call') and immediately scopes it against the sibling it replaces ('instead of one browser_type per field'). An agent can distinguish it from browser_type without consulting either schema.

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?

It gives a clear selection rule: use this rather than repeated single-field browser_type calls, and the cost rationale reinforces the choice. It stops short of stating when not to use it (e.g. single-field edits or fields needing per-step verification between entries).

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