Skip to main content
Glama

browser_act

Perform one page action from a plain-English instruction, such as go to, search, click, fill, type, scroll, or extract. Ambiguous matches return candidates; destructive clicks ask for confirmation.

Instructions

Perform one simple action on the current page from a plain-English instruction: go to <url>, search for <text>, click <label>, fill <field> with <value>, type <text> in <field>, scroll down|up, extract <text>, what's on this page. Matching is literal text/label based (no LLM): if several elements match it returns candidates instead of guessing, and clicks on destructive labels (delete/buy/pay/submit…) return needs_confirmation unless force:true. Returns {action, ...} or {action:"<name>_error", error}. For anything precise use browser_click, browser_fill, browser_elements or browser_eval with a CSS selector.

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": {
      "instruction": "<instruction>"
    },
    "name": "browser_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoClick even when the matched label looks destructive
instructionYesNatural language instruction for what to do on the page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.5.0
    • addedInput schema / properties / force
      Added value: +{
      +  "description": "Click even when the matched label looks destructive",
      +  "type": "boolean"
      +}
  2. Addedv3.2.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses that matching is literal text/label based with no LLM involved, that multiple matches yield `candidates` instead of a guess, and that destructive labels return `needs_confirmation` unless `force:true` is set. It also specifies the response envelope (`{action, ...}` or `{action:"<name>_error", error}`), which is more than most no-annotation tools offer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and command vocabulary, with the fallback and precision escape hatch at the end where it belongs. It is dense to the point of being a run-on paragraph with many parenthetical clauses, which slightly hurts scanability, but essentially every clause carries 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?

For a two-parameter tool with no output schema and no annotations, the description still covers the command grammar, ambiguity handling, the confirmation gate, and the return shape including an error variant. Nothing an agent needs in order to call it correctly and interpret the result is missing.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes well past the schema by documenting the actual grammar accepted by `instruction` — the command verb list is the real contract for that parameter. It also explains the practical effect of `force` (bypasses the destructive-label confirmation gate), which the schema only describes abstractly as 'click even when the matched label looks destructive.'

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?

States a concrete verb and target ('perform one simple action on the current page') and then enumerates the exact accepted instruction forms (goto, search, click, fill, type, scroll, extract, page summary). It explicitly positions itself as the low-precision path and names the precise siblings, so an agent can separate it from browser_click/browser_fill without opening a schema.

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?

Gives a clear routing rule: use this for plain-English single actions, and 'for anything precise use browser_click, browser_fill, browser_elements or browser_eval with a CSS selector.' It also tells the agent what to do when the outcome is ambiguous (read `candidates` rather than assume a click happened), which is actionable usage guidance, not just context.

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