dialog
Set whether to accept or dismiss the next JavaScript confirm, prompt, or beforeunload pop-up before triggering it; optionally enter prompt text.
Instructions
Decide how to answer the next JavaScript dialog (confirm, prompt, beforeunload) before the action that triggers it. Without this, alerts are accepted and confirms/prompts are dismissed; tool results report every dialog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| promptText | No | Text to enter when accepting a prompt(). |