Skip to main content
Glama

browser_handle_dialog

Resolve JavaScript dialogs (alert, confirm, prompt) that block browser tab execution. Accept or dismiss dialogs to unblock scripts and continue automated web interactions.

Instructions

[Disabled] Handle a JavaScript dialog (alert, confirm, prompt) that is blocking all script execution in a tab. JS dialogs (alert(), confirm(), prompt()) freeze the entire page until dismissed — no other browser tools will work while a dialog is open. Use action "accept" to confirm/dismiss alerts, "dismiss" to cancel. For prompt() dialogs, provide promptText with the text to enter before accepting. Common scenario: a tool call times out or errors because a dialog appeared — call this tool to dismiss it, then retry the original action.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesTab ID of the page with the dialog
actionYesWhether to accept (OK/Yes) or dismiss (Cancel) the dialog
promptTextNoText to enter in prompt() dialogs before accepting. Ignored for alert/confirm.

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/opentabs-dev/opentabs'

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