Skip to main content
Glama

page.list_dialogs

Read-only

Lists JavaScript alert, confirm, prompt, and beforeunload dialogs currently blocking a browser page so you can identify and handle interruptions.

Instructions

JavaScript dialogs (alert/confirm/prompt/beforeunload) currently blocking the page.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "page.list_dialogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description does add substantive context beyond annotations: these dialogs are blocking page interaction, which tells the agent why it matters. It does not describe the return shape (dialog type, message, handle) or whether multiple dialogs can be queued.

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?

A single short sentence with zero filler and the key scoping constraint ('currently blocking') up front. It is not under-specified in length, though the missing verb makes it read as a fragment rather than a complete tool statement.

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 simple two-optional-param read tool this covers the essentials, especially with annotations carrying the safety profile. However, with no output schema, the description should say what a listed dialog looks like (type, message, whether dismissible), and it omits any interaction guidance for the blocking state it highlights.

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% with only two optional handle parameters, both fully documented in the schema. The description adds no parameter-level meaning, which is acceptable given the schema already carries the burden.

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?

Identifies the specific resource (JavaScript alert/confirm/prompt/beforeunload dialogs) and scopes it to those currently blocking the page, which separates it from siblings like page.list_frames or page.list_tabs. It is a noun phrase with no verb, so the listing action is only inferred from the tool name rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no mention of what to do next (e.g., accept/dismiss a dialog), and no named alternative. The phrase 'currently blocking the page' hints that this is a pre-interaction check, but the agent must infer that entirely.

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

Deploy Server

Other Tools