Skip to main content
Glama

agent-browser

Act on the current page

browser_act
Destructive

Use for: interacting with the page — click, fill, type, select, submit, press. Returns the resulting page title, URL and text so you can verify the action landed. Don't use when: the target element is not on the current page — navigate or snapshot first. This tool can change remote state (it can submit forms).

Input Schema

NameRequiredDescriptionDefault
valueNoValue for fill/type/select, or key name for press (default Enter).
actionYesThe interaction to perform on the target element.
selectorYesCSS selector of the target element.
session_idYesSession ID. Reuse the same ID to keep cookies, login state and page position across calls; a new ID starts a fresh browser.

Output Schema

NameRequiredDescriptionDefault
urlYes
textYes
titleYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is known; the description adds the concrete reason ('it can submit forms') and states what comes back (title, URL, text) for verification. What's missing is failure behavior or what happens on a stale/absent selector, which is relevant for a mutation tool.

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?

Three tight sentences with the positive case front-loaded, followed by the exclusion and the state-change caveat. Every sentence carries distinct information and nothing is repeated from the schema.

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?

An output schema exists, yet the description still helpfully signals that the response lets you verify the action landed. Combined with the exclusion rule and state-change warning, an agent has enough to invoke it correctly; only error/retry behavior is unaddressed.

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 enum values, selector semantics and value/key default are all documented in the schema. The description's verb list mirrors the enum rather than adding syntax, ordering or constraint detail, so baseline 3 applies.

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?

Names the specific resource ('the page') and enumerates concrete verbs (click, fill, type, select, submit, press), so an agent knows exactly what class of operation this is. It also distinguishes itself from siblings by pointing to navigate/snapshot when the target isn't on the current page.

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?

Explicit 'Use for:' and 'Don't use when:' framing with named alternative tools (navigate, snapshot) for the excluded case. There is no ambiguity about when this tool is the right choice.

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