Skip to main content
Glama

Browser Set Value

browser_set_value
Destructive

Use this to set a specific Chromium form field value through guarded DOM interaction rather than individual keystrokes. Inspect the page and selector first; changing the field can trigger page events.

Input Schema

NameRequiredDescriptionDefault
textNoFor action=type, Unicode text to insert. For non-type element actions without selector/browser_text, visible text may identify the target.
titleNoChoose a page whose title contains this text.
valueNoValue for action=set_value; also accepted as a legacy type payload when text is used as the locator.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
endpointNoLoopback Chrome DevTools endpoint. Defaults to REMCP_CDP_URL or http://127.0.0.1:9222.
selectorNoCSS selector for the target element; prefer the reusable selector returned by browser_find.
target_idNoPage target id returned by browser_tabs.
timeout_msNoTimeout in milliseconds.
browser_textNoVisible text used only to locate a DOM element; use this instead of overloading text for action=type.
url_containsNoChoose a page whose URL contains this text.

Output Schema

NameRequiredDescriptionDefault
dataNoBrowser element action structured result for browser_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructive, non-idempotent, open-world writes. The description adds genuinely new context: interaction is 'guarded DOM' rather than synthetic keystrokes, and changing the field 'can trigger page events' (change/blur handlers) - a side effect an agent must anticipate. It does not discuss failure modes or permissions, hence not a 5.

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 sentences, front-loaded with purpose and immediately followed by the operational caveat; there is no filler or restatement of the title.

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?

With an output schema and fully documented parameters, the description only needs to convey purpose, prerequisite, and side effects - which it does. Some gap remains around target/page selection across the 10 params, but the schema covers those.

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 schema already documents selector, value, device, target_id, timeout_ms and the text/browser_text overload. The description only hints at 'selector' and 'value' without adding format or precedence guidance, so the baseline 3 applies.

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?

States a specific verb and resource ('set a specific Chromium form field value') and contrasts the mechanism with keystroke typing, which implicitly separates it from browser_type. It stops short of naming that sibling or browser_fill_form, but the action is unambiguous.

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?

'Use this to ... rather than individual keystrokes' implies when this tool is preferable to browser_type/browser_fill_form, and 'Inspect the page and selector first' gives a prerequisite. However, no sibling is named and no explicit when-not condition is stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources