Skip to main content
Glama

browser_fill

Fill a web input matched by CSS selector with text, optionally clearing existing content first; pass the tab handle so multiple agents stay on separate pages.

Instructions

Fill an input matched by CSS selector with text. tab: the handle browser_new_tab returned ("t3"). Pass it on every call: several agents can share this server, and the tab is how each one keeps to its own page.

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": {
      "selector": "<selector>",
      "text": "<text>"
    },
    "name": "browser_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNo
textYes
selectorYes
clear_firstNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the multi-agent tab-ownership model and where the handle comes from, which is real behavioral context. But it omits what happens when the selector matches nothing, whether the field is cleared first (the clear_first default of true is silently applied), and what the call returns.

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 sentences, both front-loaded with the operative information: the action first, then the tab contract. The tab explanation runs slightly long but earns its place by preventing cross-agent page collisions.

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?

No output schema and no annotations mean the description is the only source of behavioral detail, and it leaves gaps: the undocumented clear_first default, no error/no-match behavior, no return value. Adequate to invoke correctly in the happy path, but not complete for a four-parameter mutation 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?

Schema description coverage is 0%, so the description must compensate. It covers selector, text, and tab well, including the handle format example "t3" and its provenance from browser_new_tab. The fourth parameter, clear_first, is never mentioned despite defaulting to true, which is a meaningful and surprising side effect left undocumented.

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 an input matched by a CSS selector with text. That is unambiguous on its own, but it never distinguishes itself from close siblings like browser_type, browser_fill_ref, or browser_fill_secret, so an agent must guess which fill variant applies.

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?

Gives clear guidance on the tab parameter's usage (pass it on every call, it comes from browser_new_tab) and explains why via multi-agent isolation. However, it offers no guidance on when to prefer this tool over browser_type or the _ref/_secret variants, which is the more consequential selection decision.

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