Skip to main content
Glama

Set a form value

form_input

Set values for form elements by ref, including text inputs, selects, checkboxes, radios, switches, and contenteditable editors, and fire input/change events that React and Vue detect.

Instructions

Set the value of a form element by ref (from read_page/find): text inputs and textareas (string), selects (option value or visible text), checkboxes/radios/switches (boolean), contenteditable editors (string). Fires the input/change events frameworks like React and Vue listen to.

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": {
      "tabId": "<tabId>",
      "ref": "<ref>",
      "value": "<value>"
    },
    "name": "form_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref, e.g. "ref_7".
tabIdYesTab ID from tabs_context / tabs_create.
valueYesValue to set.
action_summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/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 does disclose the non-obvious behavior that it fires input/change events for React/Vue-style frameworks — exactly the kind of detail an agent cannot infer. It leaves out what happens on failure, whether the field is focused/scrolled into view, and critically whether an existing text value is replaced or appended.

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 dense sentence, front-loaded with the action, using compact parenthetical type lists rather than prose. Every clause carries information; nothing is redundant with the title or schema.

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

Completeness4/5

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

For a 4-parameter mutation tool with no annotations and no output schema, it covers supported elements, value coercion, and framework event behavior. The remaining gaps — return value, error handling, and replace-vs-append semantics — are meaningful for a form-filling agent but not fatal.

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 75%, but the weakest slot — 'value' described only as 'Value to set' — is well compensated by the description's per-element type mapping (string for text/textarea, boolean for checkboxes, option value or visible text for selects). The description adds real meaning here, though it says nothing about the ref format beyond the source tools or about action_summary.

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?

States a specific verb and resource ('Set the value of a form element by ref') and then enumerates exactly which element categories are supported and what value type each expects. An agent can distinguish this from siblings like computer or javascript_tool without opening any 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 establishes the prerequisite workflow explicitly — the ref must come 'from read_page/find' — which tells the agent which tools to call first. It does not say when to prefer a different tool (e.g. javascript_tool for programmatic assignment) or what to do when setting fails, so there is no exclusion guidance.

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