Skip to main content
Glama

Act on Observed Element

browser_action

Executes click, fill, type, select, check, uncheck, or scroll actions on browser elements by observation index, rejecting stale or out-of-range references.

Instructions

Execute click, fill, type, select, check, uncheck, or scroll using a temporary element_index from the latest browser_observe call. Rejects stale or out-of-range indices.

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": {
      "action": "<action>"
    },
    "name": "browser_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoInput text or option value for fill, type, or select actions
actionYesAction to execute against the latest observation
amountNoScroll pixels when action="scroll" without element_index
task_idNoOptional task ID for execution tracking and cancellation
directionNoScroll direction when action="scroll" without element_index
timeoutMsNoBounded timeout in milliseconds (500-60000)
session_idNoOptional target browser session ID (defaults to active default session)
element_indexNoZero-based element index from the latest browser_observe output
observation_idNoOptional observationId to enforce exact observation freshness

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the mutation and open-world profile is covered. The description contributes beyond that by disclosing a failure mode: stale or out-of-range indices are rejected, which tells the agent indices expire and must be refreshed. It does not describe what a successful action returns or whether actions are retried.

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, no filler, with the action list and the index-source constraint front-loaded. Every clause carries information the agent needs before calling.

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 nine-parameter mutating browser tool, the definition covers the core mechanics but omits two things an agent would want: how the plain scroll path (direction/amount, no element_index) differs, and how this compares to the direct-action siblings. The complete schema and the annotations carry most of the remaining load, and there is no output schema to explain.

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 coverage is 100%, so the schema already documents all nine parameters including enums and bounds, making 3 the baseline. The description adds only that element_index is temporary and validated against the latest observation; it says nothing about the scroll path that uses direction/amount without an index, nor about observation_id or session_id targeting.

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 gives a specific verb (Execute) plus an explicit enumeration of the actions (click, fill, type, select, check, uncheck, scroll) and the resource (a temporary element_index from the latest browser_observe call). That distinguishes it from the direct-action siblings like browser_click and browser_fill only indirectly, via the observe-index workflow, since no sibling is named.

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?

It states a hard prerequisite: the element_index must come from the latest browser_observe call, which tells the agent when this tool is the correct path. There is no explicit exclusion or named alternative (e.g. when to prefer browser_click or browser_scroll), so it stops short of full routing guidance.

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