Skip to main content
Glama

browser_form_input

Set the value of any standard form control (input, textarea, select, checkbox, radio) directly in the DOM, triggering input and change events for framework compatibility.

Instructions

Set a form control's value directly in the DOM: input/textarea/contenteditable (text), select (option value or label), checkbox/radio ("true"/"false"). Fires input/change events so frameworks pick the value up. Mutating. Target by CSS selector or ref. Reliable for plain form fields; rich editors (CodeMirror and the like) and custom comboboxes often ignore it — for those, click the field with browser_computer and type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoref from browser_read_page/browser_find
tabIdYestab id from browser_tabs_list or browser_tab_create
valueYesnew value; for checkbox/radio pass "true" or "false"
selectorNoCSS selector
Behavior5/5

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

Without annotations, the description fully discloses mutating behavior, event firing, and limitations (rich editors ignore it). No contradictions.

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?

Concise and front-loaded: three sentences with zero waste, every sentence adds essential information.

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

Completeness5/5

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

Given no output schema, the description covers usage, limitations, target methods, and event behavior, making it complete for proper tool selection.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. Description adds value by clarifying value semantics for checkbox/radio and noting target methods (CSS selector or ref), but schema already covers these.

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 it sets a form control's value in the DOM, specifying supported element types (input, textarea, etc.) and distinguishing itself from sibling tools like browser_computer for typing.

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?

Explicitly states when to use (plain form fields) and when not to (rich editors like CodeMirror), and provides an alternative method (click with browser_computer and type).

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/dashi96/chromium-bridge'

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