Skip to main content
Glama

browser_fill

Fills an input or textarea matched by a CSS selector with a value and fires input/change events, optionally targeting a specific browser tab.

Instructions

Fill an input/textarea matching a CSS selector with a value (fires input/change events).

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>",
      "value": "<value>"
    },
    "name": "browser_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNotab to target: 0-based index or URL/title substring; defaults to first tab
valueYes
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden, and it does disclose one genuinely useful trait: the tool fires input/change events, which matters for reactive frameworks. It omits other relevant behavior — whether the existing value is replaced or appended, what happens if no element matches, or whether disabled/hidden inputs are skipped.

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?

A single front-loaded sentence with the operation first and the behavioral parenthetical last; no filler, no restatement of the tool name.

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 three-parameter, single-purpose browser action with no annotations and no output schema, the definition covers the core contract but leaves return-value and failure behavior unstated. An agent knows what to send but not how to confirm success or recover from a non-matching selector.

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 coverage is only 33% (only 'tab' is documented in the schema), so the description must compensate. It partially does by tying 'selector' to CSS selector matching against input/textarea elements and 'value' to the text written, but adds no format or scoping detail for those two required parameters, and says nothing about 'tab' resolution beyond the schema text.

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 ('Fill') plus the exact targets ('input/textarea matching a CSS selector') and the action performed on them ('with a value'), so an agent can distinguish this from browser_click or browser_text. It stops short of naming a sibling or exclusion, but the resource and mechanism are unambiguous.

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?

Usage is only implied by the verb and the input/textarea restriction — an agent can infer this is for entering text rather than clicking or reading. There is no explicit when-to-use, when-not-to-use, or prerequisite guidance (e.g., that the page must already be loaded or the element visible).

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