Skip to main content
Glama

Playwright MCP

by furugen

browser_handle_dialog

Automate dialog handling in browser automation by accepting or dismissing dialogs and managing prompt text inputs using Playwright MCP's structured accessibility snapshots.

Instructions

Handle a dialog

Input Schema

NameRequiredDescriptionDefault
acceptYesWhether to accept the dialog.
promptTextNoThe text of the prompt in case of a prompt dialog.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "accept": { "description": "Whether to accept the dialog.", "type": "boolean" }, "promptText": { "description": "The text of the prompt in case of a prompt dialog.", "type": "string" } }, "required": [ "accept" ], "type": "object" }

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/furugen/playwright-mcp'

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