Skip to main content
Glama

Browser Action

act

:

Instructions

Perform a browser interaction: click, fill, type, check, select, press key, scroll, hover, mousemove, drag, upload, resize, back, forward. Use @eN refs from navigate/snapshot as the target (e.g. '@e2'). CSS selectors also work. drag: requires target (source) and target2 (destination). upload: requires target (file input) and filePaths. resize: requires width and height (no target needed). holdDuration: for click, holds mouse down for N ms (long-press). Returns a fresh snapshot if the page navigated, or just the action result if it didn't.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID.
actionYesInteraction to perform.
targetNo@eN ref or CSS selector. Required for click, fill, type, check, select, hover.
valueNoText for fill/type, option value for select.
keyNoKey name for press (e.g. 'Enter', 'Tab', 'Control+a').
scrollDirectionNoScroll direction. Default: down.
scrollAmountNoPixels to scroll. Default: 300.
typeDelayNoDelay in ms between keystrokes for action='type'. Enables human-like typing speed.
xNoX coordinate for mousemove action.
yNoY coordinate for mousemove action.
target2NoDrop destination for drag action. @eN ref or CSS selector.
filePathsNoFile path(s) for upload action. Single string or array of strings.
widthNoViewport width for resize action.
heightNoViewport height for resize action.
holdDurationNoHold duration in ms for click action (long-press). Uses mouse.down() + wait + mouse.up().
Behavior4/5

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

With no annotations provided, the description carries full disclosure burden. It effectively explains return behavior ('Returns a fresh snapshot if the page navigated, or just the action result'), clarifies mechanical details ('mouse.down() + wait + mouse.up()' for holdDuration), and documents action-specific constraints. Could be improved by stating element waiting behavior or error handling.

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?

Highly information-dense without redundancy. Structure logically flows from general capability → target syntax → action-specific requirements → return behavior. Every clause serves a distinct purpose, though the density approaches the upper limit for single-paragraph readability.

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 15 parameters and multi-modal behavior (15 distinct actions), the description adequately covers the complexity by documenting conditional requirements for each action type. Explains output behavior despite absence of formal output schema. Minor gap: could mention behavior when elements are not yet present.

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?

While schema has 100% description coverage (baseline 3), the description adds critical semantic context: explaining @eN reference syntax, the target/target2 relationship for drag operations, and that resize requires no target. These relationships between parameters are not captured in the isolated schema field descriptions.

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 explicitly states 'Perform a browser interaction' followed by a comprehensive list of specific actions (click, fill, type, check, etc.), clearly distinguishing this from sibling tools like 'navigate' (page loading) and 'snapshot' (observation). The verb+resource combination is precise and unambiguous.

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?

Provides concrete guidance on using '@eN refs from navigate/snapshot as the target,' implicitly indicating this tool should be used after those sibling tools. Documents conditional parameter requirements (e.g., 'drag: requires target and target2'). However, lacks explicit 'when not to use' guidance versus alternatives like 'wait_for' or 'batch_actions'.

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/anthonybono21-cloud/leapfrog'

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