browser_handle_dialog
Manage and interact with browser dialogs by accepting or dismissing them, and inputting text when required, using Playwright MCP's structured automation capabilities.
Instructions
Handle a dialog
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accept | Yes | Whether to accept the dialog. | |
promptText | No | The 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"
}