Skip to main content
Glama

chrome_set_input_value

Set an input field's value programmatically through a CSS selector, including React, Vue, or Angular forms, to fill or update form data during browser automation.

Instructions

Set an input field value programmatically (works with React/Vue/Angular)

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": "chrome_set_input_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo
valueYesValue to set
selectorYesCSS selector for the input

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the full behavioral burden. The parenthetical note about React, Vue, and Angular conveys genuinely useful context: the tool uses a native value setter that framework change detection recognizes. However, the description does not say what happens when the selector matches nothing or the element is not an input, whether it dispatches input/change events, or what success or failure looks like.

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?

It is a single compact sentence with the action front-loaded and no wasteful wording. The framework compatibility note is packed into a trailing parenthetical rather than diluting the lead.

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 tool that mutates page state with no annotations and no output schema, the definition covers the core intent but omits error behavior, return value, event dispatch, and the tabId default. These are small gaps individually, but together they leave the agent guessing about how to confirm success.

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?

The schema documents selector ('CSS selector for the input') and value ('Value to set'), so 67% of the parameters are covered. The description adds no semantics for either parameter. In particular, tabId is undocumented in both the schema and the description, leaving its default-targeting behavior to inference.

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 names a specific verb and resource: 'Set an input field value programmatically'. That is clear enough to distinguish it from generic tools like chrome_click or chrome_evaluate, but it doesn't explicitly identify a sibling it is not, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description gives no guidance about when to use this tool instead of chrome_evaluate, chrome_click, or chrome_find_elements. It also doesn't state any prerequisites, such as whether the page must already be loaded, whether the element must exist or be visible, or which tab is targeted.

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