Skip to main content
Glama
ingjohnfigueroablanco

Browser-MCP Navigator

set_value

Set values on controlled inputs in React, Vue, or Angular by using the native setter and dispatching input/change events.

Instructions

Establece el valor de un input/select usando el setter nativo de JS.

Necesario para React, Vue y Angular: los inputs controlados no responden a .value= directo porque el framework sobreescribe el setter. Este tool usa Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,'value').set y dispara eventos input+change para que el framework detecte el cambio.

Usar para: date pickers, spinbuttons, selects custom, inputs con validacion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYes
valueYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Despite no annotations, the description reveals the underlying mechanism (using Object.getOwnPropertyDescriptor and dispatching input+change events) and why it's needed. This provides good transparency about the tool's behavior beyond a simple value assignment.

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?

The description is concise, front-loading the purpose, then providing technical rationale, and ending with usage examples. Every sentence adds value without redundancy.

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?

Given the complexity of working with framework-controlled inputs, the description covers the essential behavioral details (setter override, event dispatching). However, it lacks parameter documentation and does not mention the output schema, though the output schema exists.

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

Parameters1/5

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

Schema coverage is 0%, and the description provides no explanation of the parameters 'ref' and 'value'. While 'ref' likely refers to an element selector and 'value' the target value, the description should explicitly define them, especially given the tool's complexity.

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?

The description clearly states the tool sets the value of input/select elements using the native JS setter, specifically for controlled inputs in React/Vue/Angular. This distinguishes it from sibling tools like 'fill' or 'click', which have different mechanisms.

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?

The description explicitly lists use cases (date pickers, spinbuttons, custom selects, inputs with validation) and explains why it's necessary (framework overrides setter). It doesn't explicitly state when not to use, but the context implies it's for controlled inputs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ingjohnfigueroablanco/Fast-browser-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server