Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

form_input

Set a form control's value via its ref ID from read_page or find, supporting text inputs, textareas, contenteditable, checkboxes, radios, and select dropdowns. Use fill_form for multiple fields.

Instructions

Set the value of a single form control (text input, textarea, contenteditable, checkbox, radio, or select dropdown) using its ref ID from read_page or find. For 2+ fields on the same form, prefer fill_form.

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

Input Schema

NameRequiredDescriptionDefault
refYesElement reference ID (e.g., "ref_4").
tabIdNoTarget tab ID (defaults to active managed tab).
valueYesValue to set. Use boolean for checkboxes, option value or visible label for <select>, string for text fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the supported control types and how values map to them, but says nothing about side effects such as focus/scroll behavior, event dispatch, whether the element must be visible or enabled, or what happens when the ref is stale. For a tool that mutates page state, that leaves a meaningful gap.

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 tight sentences, front-loaded with the action and the supported control types, with the sibling routing rule last. No filler and nothing repeated.

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?

The input schema is fully annotated and there is no output schema, so the description mainly needs to establish scope and routing, which it does. The remaining omission is failure/return behavior and preconditions on the target element, which is a minor gap for a single-field setter.

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 100%, so the baseline is 3; the schema already documents ref, tabId, and the oneOf value types. The description adds only the provenance of ref (read_page/find) and redundantly restates the boolean/string/select mapping already in the schema. It adds some meaning but does not go beyond the structured data in a substantive way.

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 concrete verb and resource ("Set the value of a single form control") and enumerates the exact control types covered: text input, textarea, contenteditable, checkbox, radio, select. It also names the source of the ref ID (read_page or find) and explicitly distinguishes itself from fill_form for multi-field cases, so an agent can separate it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing rule: use this for one control, but for 2+ fields on the same form prefer fill_form. It also implies the prerequisite that a ref must already exist from read_page or find. The when/when-not/alternative package is essentially complete for this scope.

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