Skip to main content
Glama

fill

Replaces text in input, textarea, or editable elements and clears fields when given an empty string.

Instructions

Replace the value of an input, textarea, or editable element. Use an empty string to clear it.

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": {
      "pageId": "<pageId>",
      "selector": "<selector>",
      "value": "<value>"
    },
    "name": "fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesText to enter. An empty string clears the field.
pageIdYes
optionsNo
selectorYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose that existing content is overwritten rather than appended, but says nothing about actionability requirements, focus/scroll side effects, failure modes when the element is not editable, or whether the call waits for anything.

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 short sentences with the action first and the clearing case second; every clause earns its place and nothing is padded.

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

Completeness2/5

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

Five parameters, three of them required, a nested selector object with a snapshot-reference variant, no output schema and no annotations — the definition is far too thin for that complexity. An agent gets no guidance on how to construct a valid selector or which session the pageId belongs to.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%, and the description only restates the value semantics already documented in the schema ('An empty string clears the field'). It adds nothing for the nested selector union (label/role/ref, snapshotId), pageId, sessionId, or the force/timeout/noWaitAfter options.

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?

The description gives a specific verb ('Replace the value') and narrows the resource to 'input, textarea, or editable element', which lets an agent distinguish it from click, select-option, and set-checked without opening schemas. It stops short of naming those siblings explicitly.

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: the element-type restriction hints at form-field entry and the empty-string note covers clearing. There is no explicit when-to-use versus alternatives, no mention that a selector must come from a fresh page snapshot, and no prerequisites such as an active session.

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