Skip to main content
Glama

browser_fill_ref

Fill a browser input or textarea by its snapshot ref with supplied text, using the tab handle so each agent edits only its own page.

Instructions

Replace the value of input/textarea ref from the last browser_snapshot 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": {
      "ref": "<ref>",
      "text": "<text>"
    },
    "name": "browser_fill_ref"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
tabNo
textYes

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 at all, the description carries the full burden, and it does contribute real context: the shared-server multi-agent model and the requirement that tab be passed every call to stay on one's own page. It does not disclose whether this fires input/change events, whether it focuses the element first, whether it clears prior content atomically, or how a stale ref fails.

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?

Front-loaded with the action, followed by the ref provenance and then the tab argument plus rationale; no sentence is filler. The shared-server explanation is slightly verbose but justifies its length given the concurrency hazard.

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, annotation-free tool this covers parameter meaning and the multi-agent tab model well, but leaves open what a call returns, what happens to the page state after filling, and failure modes for stale or non-input refs.

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 0%, yet the description defines all three parameters: ref ('from the last browser_snapshot'), text (the replacement value), and tab (handle returned by browser_new_tab, with the concrete example "t3"). The only gap is that ref and text types/formatting are left to 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?

Names a specific verb and resource ('Replace the value of input/textarea ref ... with text') and pins the ref's origin to the last browser_snapshot, which tells an agent exactly which element token is valid. It does not explicitly contrast with browser_fill or browser_type, so the sibling boundary must be inferred.

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 implied rather than stated: it presupposes a prior browser_snapshot call and states that the tab handle must be passed on every call. There is no explicit when-not-to-use, and no naming of browser_fill/browser_type as the alternatives for selector-based or keystroke-based input.

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