Skip to main content
Glama

Perform browser action and wait

browser_action_and_wait
Destructive

Perform browser actions like click or press while atomically waiting for navigation, response, popup, or dialog events, handling popups and dialogs in one call.

Instructions

Atomically register a navigation, response, popup, or dialog waiter first, then click or press on the explicitly addressed page under one shared deadline; the action locator may use a bounded semantic iframe chain. Popup pages receive a new BrowserMesh pageId in the same session with isDefault=false and are closed if the page limit is exceeded. Dialogs must be handled atomically because they cannot be inspected later; specify the expected type and accept/dismiss action. Returned dialog text is bounded. Use this instead of parallel same-session calls when an action triggers the event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitYes
actionYes
pageIdYes
sessionIdYes
timeoutMsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYes
pageIdYes
sessionIdYes
operationIdYes
Behavior4/5

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

The description adds meaningful behavior beyond the annotations: popup pages receive a new pageId with isDefault=false, may be closed on page-limit excess, dialogs must be handled atomically because they cannot be inspected later, and returned dialog text is bounded. This complements the binary readOnly/destructive/idempotent flags without contradicting them.

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?

The description is dense but front-loaded: the first sentence captures the core purpose and mechanism, and subsequent sentences cover popup behavior, dialog behavior, and usage. Every sentence adds information; there is no filler or repetition of schema details.

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 complex tool with nested wait/action/iframe schemas and no property descriptions, the description covers the key decision points: what can be waited on, what actions can be performed, iframe handling, popup semantics, dialog atomicity, and when to prefer this tool. Output semantics are also partially covered, and an output schema exists to handle return details.

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?

With schema description coverage at 0%, the description compensates substantially by explaining the wait variants (navigation, response, popup, dialog), dialog accept/dismiss semantics, prompt text bounding, and iframe-chain locators. It does not explicitly walk through sessionId/pageId/timeoutMs, but those are structurally covered by the schema and names are self-explanatory.

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 that the tool atomically registers a waiter (navigation, response, popup, or dialog) and then performs a click or press on a specifically addressed page. It also distinguishes itself from sibling tools by saying to use it instead of parallel same-session calls when an action triggers an event.

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?

The description gives explicit usage context: use this when an action triggers a waitable event (navigation, response, popup, dialog) and when coordination matters. It names the alternative pattern (parallel same-session calls) but does not explicitly state when to fall back to simpler sibling tools like browser_click or browser_wait.

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/scrollDynasty/BrowserMesh'

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